Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

PC-DIO96 works in test panels and MSVB but fails in MSVC++

This used to work fine, but no longer works.
In test panels and MS Visual Basic I am able to read and set the DIO lines with no problems. In MS Visual C++ I am now getting a dimmed light on my relays instead of an off condition when I attempt to toggle relays. Inputs also do not change states. The same hardware works in the NIDAQ test panels and under MS Visual Basic. What is going on???
I have reloaded, tested, and simplified my code. I get no error codes from any of the function calls. This used to work fine. I am completely lost as to what has happened. I have to get this working under MSVC++ ASAP. Please email with any help you can.
I have attached a copy of the test c++ file I have been tr
ying to debug with. Thanks.
0 Kudos
Message 1 of 2
(3,125 Views)
If your LED outputs are dimming instead of turning on, it sounds like they may be rapidly switching on/off. Try stepping through your program to see if this is happening.
0 Kudos
Message 2 of 2
(3,125 Views)