07-31-2009 01:24 PM
I am working on an application in which I want to cycle a number of relays. When I run the program all the digital outputs stay at 5 volts and do not change during the test. I have attached copy of my program as it exists so far. Any help would be appreciated
07-31-2009 01:29 PM
08-04-2009 12:30 AM - edited 08-04-2009 12:30 AM
08-04-2009 12:33 AM - edited 08-04-2009 12:34 AM
08-04-2009 12:35 AM
Hi Shawn,
I took a look at your code and it seems correct as long as you have the channels hooked up properly (I can only see the tasks being selected).
Have you tried using test panels in the Measurement and Automation Explorer to verify that your device is working?
08-04-2009 06:52 AM
I used DAQ MX to test the digital outputs of the card and they switch when I use the test panels. That is why I figured it had to be something in the way that I wrote the code.
08-04-2009 07:22 AM
Hi Shawn,
I took a closer look at your code and it doesn't appear that you ever write a "false" to a digital line, only "true".
Is there a case where you have written a false and I don't see it? It appears to me as if that code should always output 5V (true).
08-04-2009 07:33 AM
08-04-2009 07:59 AM
08-04-2009 02:00 PM
Hello Shawn,
You are writing a "false" to "Digital Out Valve 3" task in the "Purge Run" state and to Vales 1, 4, and 5 in the "Switching Leakage Run" state. Could you please place a breakpoint immediately after the digital write where you write false so we can measure the voltage at this point?