LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Analog Output in *.vi

Solved!
Go to solution

Hi Y'all,

 

I have a PCI-6281 with an SCB-68 B.O.B. Anyways, I have been using the two analog output channels to drive some voltages across some instruments. Everytime I reboot the computer, I have to reset the voltages using the measurements and automization explorer. (I go to measurements and automization explorer > Devices and interfaces > NI PCI-6281 dev 1 > test pannels... > analog output). Is there a way to have the VI set this everytime I run it? THX

0 Kudos
Message 1 of 7
(4,564 Views)

morning bump

0 Kudos
Message 2 of 7
(4,550 Views)

Your question does not make much sense. If you already have a VI, then you are controlling the analog output so I am not at all sure what more you are asking for.

0 Kudos
Message 3 of 7
(4,545 Views)

I would like to set AO 0 to 1.5 volts and AO 1 to 5 volts. I have to do this through Measurements and Automation explorer. When I reboot, I loose those settings and have to repeat. Is there a way to get the VI to set this.

0 Kudos
Message 4 of 7
(4,524 Views)

Start by searching for examples of analog output or analog generation.  The examples which come with LabVIEW are a good place to start, a good way to learn how to use the DAQ drivers, and may be all you need for simple applications.

 

Lynn

0 Kudos
Message 5 of 7
(4,521 Views)
Solution
Accepted by topic author bronco9588

Look at the DAQmx Write.vi in the DAQmx pallet.  Also look up in the example finder (Help->Find Examples...) for DAQmx Analog Output.  There should be plenty of examples that you should be able to strip down to simply set the voltages.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(4,520 Views)

The examples are a great little resource.

 

0 Kudos
Message 7 of 7
(4,506 Views)