Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

mydaq generate digital output

Hi

 

I wish to generate a 5 volts on DO1 and remove a 5 volt supply fromDO2 simultaneously, and vice versa as I toggle a switch, through my Mydaq data aquasition device. I have liitle experience with labview and can not find any examples/forum post to hepl me. From what I gather, the easiest way might be to feed a boolean array into a Daq Assistant and invert one of the inputs. If anyone can give me a step by step way to achieve this, I would really really appreciate it

 

Many thanks

 

Greg

0 Kudos
Message 1 of 2
(4,089 Views)

Help>Find Examples>Hardware Input and Output>DAQmx>Digital Generation>Write Dig Chan for an example that doesn't use the DAQ Assistant.

 

The DAQ Assistant hides enough code that selecting to invert an input just makes it more confusing. Your Boolean array has two elements. Simply make one a true value and the other a false.

 

For LabVIEW, see the basic tutorial. Also see the Getting Started with NI-DAQmx.

0 Kudos
Message 2 of 2
(4,087 Views)