Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital input setup problem

Have a basic 2 wire switch hooked up to a breakout board that is connected to NI-6023E DAQ card. Want to setup on a VB6 form a CWDI control that when the switch is pressed, a messagebox appears. Have tried to setup this and am getting nothing. The switch works in MAX tests. How do you go about setting up a DI? please don't reference me to the example that comes with MStudio, it doesn't help.
0 Kudos
Message 1 of 2
(3,149 Views)
Hey Matt,

Have you tried the examples that are installed with NI-DAQ? There is a very simple example for visual basic entitled DIoneLine. You run this example and it gives you the state of a digital line. I ran it with my E Series device and it worked. This example can be found in the ...\Program Files\National Instruments\NI-DAQ\Examples\VBasic\Di directory.

If you don't have the examples directory within the NI-DAQ folder than you probably didn't install support for Visual Basic when installing NI-DAQ. You can modify the NI-DAQ installation within add/remove programs or reinstall NI-DAQ with support for visual basic.

I hope this helps.

Regards,

Todd D.
0 Kudos
Message 2 of 2
(3,149 Views)