Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write voltage to 6024E card to a channel?

How do i input a analogue voltage from a joystick and measure the output of this voltage using the DAQ6024E card and lab window? what is the program to write and what are the connections to the card that i have to make?

Also,how do i measure a voltage which i input to DAQ6024e card? what is the program that i need to write and what are the connections needed?

I tried using the functions AOV_Write and nidaqAISinglePointOp but to no avail.

regards,

Leroy
0 Kudos
Message 1 of 2
(2,624 Views)
Hi Leroy:

You can connect the joystick leads to the analog input channels and then use any of the shipping examples to read in the incoming voltages. Remember you cannot exceed +-10V on this card.

Please refer to Figure 4-1 in the user manual for I/O Connector Pin Assignments. 6024E User Manual . Basically, you will use the analog input channels (0 - 15) to connect to the Joystick.

You will be using the Read functions to read the voltage being supplied to your DAQ card from the joystick. The AO_Write functions write to the analog output channels on the DAQ cards. Since you are reading from the DAQ Card, you will have to use the Read functions. Pleae look at the DAQsingleBufSync.c example l
ocated in the examples folder in CVI. It reads a waveform from one analog input channel using internal. The default install location for the examples is: C:\Program Files\National Instruments\CVI70\samples\daq.

I would recomend that you look at the examples to learn more about programming the DAQ Card. You should also search our knowledgeBases and Developer Zone documents that you can access through www.ni.com/support for more examples and tutorials.


Regards,
Bharat Sandhu
Applications Engineer
National Instruments.
Penny
0 Kudos
Message 2 of 2
(2,624 Views)