LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create multiple analog input channels for a real time system

Hi,

I am looking for a way to create 2 or more analog input channels to measure a set of sinusodal voltage signals for a Real Time system that I am working on. I can get a single channel to work properly and provided the correct measurement values but as soon as I try to include a second analog channel measurement on the same task. I no longer get a single sinusodal waveform from the waveform chart, but more of an oscilating squarewave as an output. Is there an example where there are two or more analog voltage measurements are being made as well as being represented in a double format?

 

Thanks in Advance for your help. 

0 Kudos
Message 1 of 4
(3,597 Views)

JTucker,

 

Does that device support multiple AI readings at the same time? What version of LabVIEW? Can you post the code of take a screen shot? 🙂

 

Here are some examples of how to do that with DAQmx:

https://decibel.ni.com/content/docs/DOC-6901

https://decibel.ni.com/content/docs/DOC-5541

https://decibel.ni.com/content/docs/DOC-12185

 

I hope that gets you going 🙂

Sam S
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,586 Views)

Hi,

 

I am pretty sure my DAC card can support multiple analog inputs, it is a NI PCI 6259. I am using LabVIEW 2009. I am not sure if you will be able to open it but I did include a copy of the .vi file. I could not get a screenshot of the code, due to its physical size on the monitor.

 

Thanks in adance for your help. 

0 Kudos
Message 3 of 4
(3,581 Views)

Thanks for the code,

 

Yes that M series card allows for multiple AI. It looks like all you need to do make another DAQmx task > Channel > Trigger etc... and then put the reads or writes in the same loop so that the data appears on separate graphs at the same time. You can make the Task in MAX if you want. You can sync the triggers as well 

 

Like the attachment 🙂 This example is a great way to do sync AI http://zone.ni.com/devzone/cda/epd/p/id/2389

Sam S
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,573 Views)