07-11-2011 07:04 PM
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.
07-12-2011 02:36 PM
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 🙂
07-12-2011 04:52 PM
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.
07-13-2011 09:06 AM - edited 07-13-2011 09:08 AM
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