|
 |
|
04-06-2008, 04:09 PM
|
#1
|
|
Constant Bitrate
Join Date: Aug 2003
Location: Iowa
Posts: 167
|
Sample VB application to control a Fusion Brain
I've seen a few people here asking how to control a Fusion Brain with code in Visual Basic. I wrote a little demo application that shows exactly that, so people can copy the code into their own applications.
Screen shot:
Note: This application supports both the v3 and v4 Fusion Brains.
Compiled Application
Visual Basic Source Code (VB2008)
-Lance
Last edited by mx270a; 01-10-2009 at 09:40 PM.
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
04-06-2008, 05:56 PM
|
#2
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Very nice!
|
|
|
04-06-2008, 11:06 PM
|
#3
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Posts: 1,141
|
tyvm for this!
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
|
|
|
04-07-2008, 09:16 AM
|
#4
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
|
wow... rr plugin might be on the way since you laid an example out. I'm good with vb6 but never used VB2k8. We'll see how it goes lol.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
04-07-2008, 10:35 PM
|
#5
|
|
Newbie
Join Date: Jul 2007
Posts: 39
|
Excellent work. It's nice to have a third party tool to verify things are working.
|
|
|
04-08-2008, 02:05 AM
|
#6
|
|
Maximum Bitrate
Join Date: Jan 2007
Location: Fort Riley KS
Posts: 515
|
sweeeeeeeeeeeeeeet!
|
|
|
04-11-2008, 10:35 PM
|
#7
|
|
Newbie
Join Date: Apr 2008
Posts: 3
|
Thanks, I'll try to convert this over to a c# sample...
|
|
|
04-11-2008, 11:28 PM
|
#8
|
|
Constant Bitrate
Join Date: Aug 2003
Location: Iowa
Posts: 167
|
New version is out. The screenshot and URLs in the first post point to the updated code.
I had one of the outputs labeled wrong, I added progress bars for the inputs, and I changed the inputs to show all 10 bits of data instead of only 8 bits.
-Lance
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
04-12-2008, 12:05 AM
|
#9
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Quote: Originally Posted by fjmf 
Thanks, I'll try to convert this over to a c# sample...
The main program is open source and already written in C#.
|
|
|
04-22-2008, 12:43 PM
|
#10
|
|
Constant Bitrate
Join Date: Aug 2003
Location: Iowa
Posts: 167
|
This code has been updated to be compatible with the current FB firmware. The links in the original post go to the updated files. My old PIC was from late 2007, and some code had to be changed to get the new one to connect/disconnect correctly.
-Lance
|
|
|
04-22-2008, 01:01 PM
|
#11
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
|
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
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
04-22-2008, 01:07 PM
|
#12
|
|
Constant Bitrate
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
|
|
|
04-22-2008, 01:14 PM
|
#13
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
|
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.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
04-22-2008, 01:22 PM
|
#14
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
|
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.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
04-22-2008, 01:23 PM
|
#15
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
|
Quote: Originally Posted by Sonicxtacy02 
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.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:07 AM.
| |