Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to flip between two analog outputs using 6211?

Hi all,

There are two analog outputs. From tick to tick I want to set ao0 to 1 and zero and go on. And I want just the opposite to ao1, zero to 1, zero to one, etc.

To be more clear, when I use only ao0:1, first ao0 is set to 1, then ao1 is set to 1. What I want is setting ao0 to zero when ao1 is one and vice versa:

ao0: 1 0 1 0 1 0...

ao1: 0 1 0 1 0 1...

Any advice is appreciated.

Bests,

Ozan 

 

 

0 Kudos
Message 1 of 3
(5,464 Views)

Hi ozandogan,

 

Attached is LabVIEW code that will implement what you are wanting. You posted in the Measurement Studio for Visual C++ section of the forums. Is this what you are using? Do you have access to LabVIEW? If so, take a look at the attached code. There are similar names for DAQmx functions in other languages so that you can adapt this code to other languages. Let us know if you have further questions!

 

David B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(5,393 Views)

Thanks a lot David. This is ok.

Ozan

0 Kudos
Message 3 of 3
(5,390 Views)