Page 18 of 33 FirstFirst ... 8910111213141516171819202122232425262728 ... LastLast
Results 171 to 180 of 328

Thread: Fusion Brain Version 6 -- Beta Testing

  1. #171
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    I had mentioned the sleep mode problem in a previous post but it works fine now.


    In MDX, I just put in the config file that the default state was ON. Is there a simple way of doing this in the config file?
    The default state in MDX was only during program startup.

    But it seems like you want the output to be ON whenever the computer is on, correct? In that case in some cs code make a timer that goes off every so often (like 100ms or something) and just turns the port on. When the computer wakes up, that timer will fire again and turn it on.
    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

  2. #172
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    Also, where is the timer interval defined? Is it internal? I know I cab define the timer interval in the cs code you supplied but just replacing the parameter "how_often_in_milliseconds" with a numeric value but just wondering where that parameter is.
    That parameter is in the xml file in this section:

    Code:
    <startup action="FuseGL.ExecuteCode" inputArgs="Logic/doOnAnalogue.cs;FuseGL_doOnAnalogue.ShowMessageBoxWithValue;RegisterAnalogueInput;{FB.AnalogueInput(0.1)};{(int)10000};" />
    you can see the inputArgs string has a lot of semicolon separated variables, but at the end of it shows the {} enclosed variables. The first variable is the AnalogueInput port[1] on FB[0] ({FB.AnalogueInput(0.1)}) and the second is an integer of 10 seconds ({(int)10000}). If you left off the "int" part, you have no guarantee it will be an integer, it may be cast as a double or float which will not allow the code to work because it is specific that a int must be used in the method arguments.
    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

  3. #173
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    Quote Originally Posted by 2k1Toaster View Post
    What does the action look like in your xml file for those buttons?
    I'm using the same config file that was in the zip.
    Love

  4. #174
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    There is a new *.zip file

    The cs file now has the line:

    Code:
                    FuseGL_AvailableLogic.PressKey('A');
    This now talks to an internal bit of code that sends key strokes. So if you run it, and have notepad ontop, you will get a stream of a's printed out (1 before each message box popup, 10seconds apart).
    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

  5. #175
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    And this will require an update (I added code internally) to version 1.1.0.234
    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. #176
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    I'm using the same config file that was in the zip.
    Are you using all the files in that zip (or just running from an extract of that directory) or are you moving files to some other place that could have old files in the same space?
    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

  7. #177
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    I extracted the zipped folder to my Fusion Brain folder with all the builds.
    Love

  8. #178
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    Quote Originally Posted by 2k1Toaster View Post
    There is a new *.zip file

    The cs file now has the line:

    Code:
                    FuseGL_AvailableLogic.PressKey('A');
    This now talks to an internal bit of code that sends key strokes. So if you run it, and have notepad ontop, you will get a stream of a's printed out (1 before each message box popup, 10seconds apart).
    Works great!
    Love

  9. #179
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Put the newest exe in a folder all by itself, and delete every other file except the exe. Press F10 when it starts, configure, add a button to control a digital output. Exit config mode (F10 again) and see if it still does it.
    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. #180
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    Works great!
    Awesome. That should save a bit of time and help with the debug.
    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

Similar Threads

  1. ** NEW Fusion Brain Version 6, Pre-Order NOW **
    By 2k1Toaster in forum Fusion Brain
    Replies: 259
    Last Post: 04-07-2013, 03:48 PM
  2. Fusion Brain version 4
    By MattFreitag in forum Fusion Brain
    Replies: 7
    Last Post: 08-01-2010, 05:32 PM
  3. Fusion Brain -- Digital Encoder Beta Test
    By 2k1Toaster in forum Fusion Brain
    Replies: 52
    Last Post: 09-18-2009, 03:11 PM
  4. Fusion Brain Version 4 Manual
    By greenman100 in forum FB Documentation and Tutorials
    Replies: 0
    Last Post: 12-19-2008, 03:11 PM
  5. Fusion Brain Version 4 ready for Beta Testers!
    By greenman100 in forum Fusion Brain
    Replies: 15
    Last Post: 11-13-2008, 11:21 PM

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
  •