07-21-2014 06:20 PM
Hi All,
I'm building an asynchronous custom device for VeriStand 2013. I'd like to make a "Go" channel. The behavior of the "Go" channel is when it's set to not-zero, the custom device starts a task. When the custom device is done with the task, it sets the "Go" channel back to zero. In my mind, this is like the latching behavior of LabVIEW Boolean controls.
Ideally, I could write the value of an input channel from the RT driver itself. I don't think I can use channel data references in an asynchronous custom device, right?
I don't want to implement anything that requires manual configuration in the system definition outside of the custom device area, e.g. calculated channel or alarm/procedure. These techniques would limit the reuse potential for the custom device. We don't use the Workspace, so I can't implement this in a custom workspace object. A custom device message is pretty close to what I need, but a "Go" message doesn't pass my sniff test; it feels like overkill.
Given I have workarounds, is there a native way to set an asynchronous device input channel value from the driver, or another way to get a "Go" channel?
Thank you,
Steve K
07-21-2014 09:44 PM
07-22-2014 01:26 AM
Hello,
I agree with Jarrod's second proposition, as I think it's safer to have a status separated from command to avoid strange side effects depending on the way the command is controlled. It also allows you using the simplest code template.
07-23-2014 10:51 AM
Thanks for taking a look and for your reply. I'd prefer not to make my users keep track of a command counter, so maybe the inline device is the cleanest interface.
Best,
Steve L