You (2k1Toaster) already probably know this but for others, to make a momentary button, I used this C# code:
Code:
using System;
using System.Collections.Generic;
using System.Threading;
using FB_USB_2011;
using FuseGL.GUI.Text;
using FuseGL.Logic;
namespace Momentary_Output_NS
{
class Momentary_Output_Class
{
public object Momentary_Output(FB_Monitor.DigitalOutputPort _port, int how_often_in_milliseconds)
{
_port.Value = 255;
Thread.Sleep(how_often_in_milliseconds);
_port.Value = 0;
return null;
}
}
}
There may be a better way to do it but this works fine for me.
Then, in the events of the button, I have this little bit:
Code:
<onMouseDown action="FuseGL.ExecuteCode" inputArgs="Logic/Momentary_Output.cs;Momentary_Output_NS.Momentary_Output_Class;Momentary_Output;{FB.DigitalOutput(0.0)};{(int)1000};" />