Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Creating 2 DO Channels for Digital Potentiometer

i need to send 2 digital output to a potentiometer. One is a reset bit and the other is a 17 bit data. It would work like this:

send reset bit 1
Hold reset
send data (17) bit (in sequence)
release reset

it should look like this: (see the attached text file (DO.txt))


How do I do this using DO channels. Thanks a lot
0 Kudos
Message 1 of 2
(3,074 Views)
Hi,

There are examples that ship with Measurement Studio. There are examples for all of the different types of tasks (i.e. AI, AO, DI, DO, etc.) The examples for DO are here:

C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx\Digital\Generate Values

You can look over these examples and see how they are writing to a specific line, or to a port(combination of lines). For your case you can write to two different lines. One of the lines can be the reset line, and the other line can be the data line.

I hope this helps. Have Fun!

George
0 Kudos
Message 2 of 2
(3,057 Views)