Page 2 of 6 FirstFirst 123456 LastLast
Results 11 to 20 of 52

Thread: Sample VB application to control a Fusion Brain

  1. #11
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,159
    Blog Entries
    51
    what time were the actual files updated.. i downloaded your source this morning and began working on converting it to an rr plugin. this was at about 11am eastern
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  2. #12
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    Update was ~5 minutes before I posted the last message. Just check the version on the Form - I use the date as the version. If it's today's date, you have today's code.

    2k1toaster and I have been discussing the send/receive stuff in the Disconnect sub. It shouldn't be necessary to Receive data there, but it's the only way I can get it to disconnect and reconnect nicely. Can you try remarking out the recieve if/then in the disconnect Sub to see if it will allow you to reconnect after you disconnect?

    -Lance

  3. #13
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,159
    Blog Entries
    51
    will do once i get the new source downloaded.. i gotta say thank you VERY much for releasing this open source as it has allowed a newb like me to understand how to communicate with the brain. If/when i release an rr plugin i will DEFINITELY be sure to credit you.
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  4. #14
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,159
    Blog Entries
    51
    ok.. when i comment then if/then statement the FB will not reconnect. the only way i can re-establish a connection is if i close the program AND disconnect/reconnect usb. Now with the if/then uncommented it connects/disconnects/reconnects as it should.
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  5. #15
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by Sonicxtacy02 View Post
    will do once i get the new source downloaded.. i gotta say thank you VERY much for releasing this open source as it has allowed a newb like me to understand how to communicate with the brain. If/when i release an rr plugin i will DEFINITELY be sure to credit you.
    If you know how to make a COM object I would be forever greatful!

    It just isnt working for me.

    And I have not updated the source in a long time. I will package it all together and post it for you. That USB communication however has not changed at all.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #16
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,159
    Blog Entries
    51
    i know how to do it in vb6.. does that help? lol Quite frankily i dont even know what program you use to open a C# source package... but i'm pretty good at learning on the fly!

    In all honesty though i'm hoping the rr plugin i'm making will satisfy all users using rr and wanting to implement the FB into it. As i stated earlier (or maybe in another thread), it will have the ability to control all digital outputs, as well as display raw data in the form of labels and variables and also parse the data for items like the temp and photo sensors. I think a com object would definitely add to the popularity of the FB.. but least this plugin will get the RR vultures off your back for awhile lol
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  7. #17
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  8. #18
    Newbie
    Join Date
    Apr 2008
    Location
    Baghdad, Iraq/Fort Bragg, NC/Saginaw, MI
    Posts
    27

    Input

    Just a bit of input from a "programmer" =D

    AnalogIn(i) = (CInt(InputArray(i * 2 + 12)) * 4) + CInt(InputArray(i * 2 + 13) / 64) 'Uses both bytes 0-1023 (10 bits)


    that line is beautifull.
    seriously, my solution was 8 lines long, converted to binary, used all 16 bits, and converted back to a long =D

    But on a serious note; do you have a layout of the output (64b) from the Fusin Brain? IE, what each byte/bit means? I see that you have bytes 12-36 in use... what are the other 40 or so bytes used for? Also, where does it hide the digital inputs?

    My FBs have been backordered for 2 weeks, so my real-world dev time has been pushed back a bit =D I'm going to be running 2 FB's in my prelude, with a custom program.

    I'm also working in VB2k8, so this app really saved me alot of dev time =)


    Thanks
    Mike

  9. #19
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    and i is from 0 to 10 correct? That is a nice line of code indeed. May just use that in the main program. I was too busy to figure it out, so I used strings
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  10. #20
    Constant Bitrate mx270a's Avatar
    Join Date
    Aug 2003
    Location
    Iowa
    Posts
    167
    "i" is 0 to 11 for the 12 inputs.

    As for other bytes, there really is nothing else of value in the byte array. There is one byte that has the 4 digital inputs, but since the digital inputs are going away in the next version, I decided not to use them at all. Just act like they aren't there.

    There is a word document around somewhere that lists the specs of the byte arrays. I don't know what the URL is to it, maybe 2K1 has it posted somewhere.

    -Lance

Page 2 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Replies: 15
    Last Post: 09-22-2008, 08:02 AM
  2. power fusion brain from car battery
    By customaudioman in forum Fusion Brain
    Replies: 3
    Last Post: 03-14-2008, 06:41 PM
  3. Skinning a custom VB application
    By RJP350Z in forum Software & Software Development
    Replies: 0
    Last Post: 01-11-2005, 08:36 AM
  4. VB front end for SB Audigy control?
    By wysocki in forum Software & Software Development
    Replies: 2
    Last Post: 12-14-2004, 07:36 PM
  5. VB Control for Character LCD's
    By Jamez_Warner in forum LCD/Display
    Replies: 0
    Last Post: 05-17-2004, 03:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •