Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use DAQ PCI-6221 with DAQ signal accessory

Hi,im using the NI PCI-6221 DAQ card.

and i want to use this card with the DAQ signal Accessory.

How can i take realtime data from sensor and give it to the DAQ card.

i have worked on the interfacing and DAQ connection but is there any other thing that should be interface in order to gather the data.

 

 

 

Omer Qureshi

MEHRAN UET,

PAKISTAN 

0 Kudos
Message 1 of 10
(7,234 Views)

Omer,

 

Thanks for posting on the NI Forums. I was curious what type of sensor you are connecting to your DAQ accessory? Are you trying to use the temperature sensor that is on the signal accessory? If you have an external sensor you could monitor the voltage output of this sensor by placing the output of the sensor to one of the Analog Input terminal on the signal accessory. Once you have this connection made and the signal accessory is connected to the PCI-6221 you will be able to take measurements.

 

The next item for you to consider is what software you are going to use to take the measurements. Are you planning on using LabVIEW, Signal Express, or Visual Studio? We have driver support for any of these platforms with our DAQmx driver. If you could give me some more details on your specific software configuration I would be able to give you more details. 

 

We have some example programs for LabVIEW if you were programming in that language. Thanks!

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 2 of 10
(7,222 Views)

Thaks for ur reply.

Sir iam using the LABVIEW software version 8.2.

I have tested the SIGNAL ACCESSORY module and gotthen analog signals.

tell me how to use the inbuilt tepmrature sensor and the external sensor.

can i directly apply tha sensor output to the input point of DAQ signal accessory.

 

waiting for ur quick response

Thank you again

 

 

Omer Qureshi

Mehran UET

Pakistan

0 Kudos
Message 3 of 10
(7,209 Views)

Thaks for ur reply.

Sir iam using the LABVIEW software version 8.2.

I have tested the SIGNAL ACCESSORY module and got the analog signals.

tell me how to use the inbuilt tepmrature sensor and the external sensor.

can i directly apply tha sensor output to the input point of DAQ signal accessory.

 

waiting for ur quick response

Thank you again

 

 

Omer Qureshi

Mehran UET

Pakistan

0 Kudos
Message 4 of 10
(7,208 Views)

Thaks for ur reply.

Sir iam using the LABVIEW software version 8.2. I have tested the SIGNAL ACCESSORY module and got the analog voltage signals.

Tell me how to use the inbuilt tepmrature sensor and the external sensor. can i directly apply tha sensor output to the input point of DAQ signal accessory. We are using K-type Thermocouple and Pressure switches and level switches aswell.

waiting for ur quick response

 

 

 

 

Thank you again

Omer Qureshi

Mehran UET Pakistan

0 Kudos
Message 5 of 10
(7,208 Views)

Omer,

 

You should look through the example finder and there are tons of good examples there that will show you how to acquire data with the NI Signal Accessory. Under LabVIEW if you choose 'Help >> Find Examples' that will open the LabVIEW example finder. You will then find a file structure in the middle, select 'Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage >> Cont Acq&Graph Voltage - Int Clk.VI' This VI will continuously acquire a voltage from whatever channel you select. To acquire from the built in Temperature sensor you will need to select the channel 0 from the PCI-6221 device. Then run the VI this will monitor the voltage coming from the sensor. You can apply the voltage of the Thermocouple to another channel input, such as Channel 1 or 2. You will be able to take the voltage readings from the device. From there all you would need to do to convert that voltage into Temperature would be to know the scaling of thermocouple. 

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 6 of 10
(7,197 Views)

Hello,

Thanks for your reply, i have done the work regarding analog signal and not facing any trouble so far.

tell me how to use the digital input , if we select the the digital input the DAQ assistant is asking for the external clock.

and it is not working on internal clock or plz tell me how to use the internal clock.

and kindly tell me the use of pin described as PF1 in the PCI-6221 (68-Pin) Pinout.

i will inform you after some more work .

 

M.Omer

student,Muet

Pakistan.

0 Kudos
Message 7 of 10
(7,077 Views)

Omer,

 

When using the Digital Input the reason that the DAQ assistant is asking for an external clock is because there is not a timing engine for the Digital I/O on the 6221. There is a way around this however and that is to use another timebase that is available on the card. This could be a counter or an analog input or output. I have attached a couple of examples that will show you how to perform this action. 

 

Correlated Digital I/O using Analog Input Task

 

Correlated Digital Output

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 8 of 10
(7,070 Views)

 Hello Sir,

 

Iam having problems regarding the Labview software.

I have a liscenced version ofLABVIEW 8.2, and the software is showing my hardware NI-6221 Daq card.

but in the Vi i can not find the daq assistant icon.

Help me out to complete my work.

Waiting for your reply

 

 

Regards,

Omer Qureshi

0 Kudos
Message 9 of 10
(6,533 Views)

Omer,

 

In your previous post I thought you were able to find your DAQ Assistant? Have you recently re-installed the LabVIEW software? If you are on the Block Diagram of LabVIEW you should be able to right-click and find the 'Measurement I/O' pallete. On the 'Measurement I/O' pallete you should find the NI-DAQmx section. If you do not have the DAQmx section you probably need to reinstall the driver. If you do have the NI-DAQmx section then you should have the DAQ Assistant there. I have included an image in the attached section of where you should find the DAQ Assistant. 

 

If you don't see the DAQmx section you can download the DAQmx driver from the following link. 

 

NI-DAQmx 9.0.2- Windows 2000/ 7x64/ 7 x86 / Vista x64 / Vista x86 / XP

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 10 of 10
(6,529 Views)