Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI 6221 Generating a Voltage Output

Solved!
Go to solution

Hello everyone,

 

I am trying to use a PCI-6221 to provide an analog output voltage of 5V and use the AI to read the returned signal using labview. Does anyone know how I can do this using this hardware device?

 

Thank you

0 Kudos
Message 1 of 3
(5,117 Views)
Solution
Accepted by topic author Irving9

Hi lrving9,

 

First you will need the DAQmx driver, here is the link for you to install the latest version.

NI-DAQmx 15.0.1
http://www.ni.com/download/ni-daqmx-15.0.1/5353/en/

 

If you already have it, then go ahead and take a look at this examples:

 

This one shows you how to output an analog DC voltage.

Community: Output a Constant Analog Voltage
https://decibel.ni.com/content/docs/DOC-18631

 

Then do you have a connector block to connect the signals?

If you do, then you can just create a task to read a Continuos Voltage Input, like in this example

Community: Voltage - Continuous Input
https://decibel.ni.com/content/docs/DOC-25105

 

If you do not have a connector block and have no way to connect the AO to an AI, then you can read the internal AO channel, like shown in this link (there is an example at the bottom):

 

Is It Possible to Read the Value of Analog or Digital Output Channels?
http://digital.ni.com/public.nsf/allkb/CB86B3B174763C3E86256FFD007A2511

 

Also when you install the driver some examples are installed as well, this shows you how to get to them:

Where Are NI-DAQmx Examples Installed?
http://digital.ni.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37

 

 

Regards,

Carolina 

 

 

0 Kudos
Message 2 of 3
(5,063 Views)

Can someone recommend right terminal block for PCI 6221?

0 Kudos
Message 3 of 3
(2,484 Views)