Tried it and it still is not working right. Deleted UserConfig file, opened FuseGL and made two buttons each of which controlled two digital outputs and it still will only allow one digital output to be on at a time.
Tried it and it still is not working right. Deleted UserConfig file, opened FuseGL and made two buttons each of which controlled two digital outputs and it still will only allow one digital output to be on at a time.
Love
Sorry for the delay I didn't see you had responded.
You make the timer code similar to in post #159
Code:System.Timers.Timer _timer = new System.Timers.Timer(); _timer.AutoReset = true; _timer.Interval = how_often_in_milliseconds; _timer.Elapsed += delegate(object sender, System.Timers.ElapsedEventArgs e) { someDigitalOutputPort.Value = 255; }; _timer.Start();
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
Ok, sensor configuration is almost done. Probably this week an update will be pushed. Major update that allows code to be called for text of objects from within the text of the object, not just on startup events. Very very useful for display items and you don't have to keep track of them in a separate spot.
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
Ok, temperature sensors are fully supported now as labels. The other sensors will be cake (cross your fingers).
Also I looked into the only one digital output at a time, and you are correct. I had a "release mode" compiler directive that changed the behaviour versus my debug mode operations. I have fixed that.
A new release will go out tonight with the fixes and additions. It shouldn't have broken anything, I am trying to make everything backwards compatible.
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
The update actually didn't go out last night. I am uploading it now. It should be live in 5 minutes or so.
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
Update is live
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
Tested it, running version 1.1.0.286. It still only lets me have one output on at a time.
Also, I still can't get the digital output timer to work right. Here is my Config file startup action:
Here's my cs file named Amp_ON.cs:Code:<startup action="FuseGL.ExecuteCode" inputArgs="Logic/Amp_ON.cs;AMP_ON_NS.TURN_AMP_ON;DigitalOutputPort___TurnOn;{FB.DigitalOutput(0.10)};{(int)100};" />
Code:using System; using System.Collections.Generic; using FB_USB_2011; using FuseGL.GUI.Text; using FuseGL.Logic; namespace AMP_ON_NS { class TURN_AMP_ON { public object DigitalOutputPort___TurnOn(FB_Monitor.DigitalOutputPort _port, int how_often_in_milliseconds) { if (allAnaloguePortsToDisplay.ContainsKey(_port)) { return true; } System.Timers.Timer _timer = new System.Timers.Timer(); _timer.AutoReset = true; _timer.Interval = how_often_in_milliseconds; _timer.Elapsed += delegate(object sender, System.Timers.ElapsedEventArgs e) { someDigitalOutputPort.Value = 255; }; _timer.Start(); } } }
Love
Bookmarks