07-11-2014 03:34 PM
I am trying to read and collect data from 4 thermocouples connected to the NI 9211 module simultaneously. I am able to get data from one channel at a time currently using this VI from the NI LabVIEW examples, but would like to see all 4 channels at the same time and be able to export them as an excel file. I have never programmed in LabVIEW before, and if someone could offer me some guidance, it'd be much appreciated! The VI is attached.
Thanks
07-11-2014 03:43 PM
07-11-2014 04:00 PM
When I try to create another physical channel and attach it to the DAQmx, it tells me that only 1 input is allowed. So I am confused as to how define more than 1 channel if only 1 input is allowed?
07-11-2014 04:08 PM - edited 07-11-2014 04:10 PM
You have to define multiple physical channels to read, and when you do the read you must state that you are going to read multiple channels. Attached is an edited VI where all I did was set the Physical Channels to be for AI0 and AI1 on Dev1. Then the Read I changed to Multichannel Multisample.
To select the physical channels you want click the drop down and choose browse. From here select the two channels you want holding CTRL.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-22-2017 01:06 PM
Hello, I attempted to open the "Thermocouple Hooovahh Edit 2.vi 143 KB" VI found in the 4th message of this chain, but I am currently using LabView 2010 and this VI is not compatible with the 2010 release. Could an equivalent VI compatible with LabView 2010 be produced so that I may view the file?
Thank you very much in advance. I hope to hear from you soon.
Best,
A poor student stuck in 2010
06-22-2017 01:58 PM
You can add that functionality to your own VI in a few seconds.
1) On your front panel modify the Physical Channel control to create the desired channels. You will have a device identifier/channel for channel 0 something like (e.g.: cDAQ1/ai0). Change it to "cDAQ1/ai0:3" to select a range of channels from ai0 to ai3.
2) On your block diagram change the DAQmx Read VI polymorphic pulldown: Analog > Multiple Channels > Single Sample > 1D waveform.
That's it, you're done except for the data logging. Look at some examples (Help > Find Examples...) and tutorials and give it a try. Post back if you get stuck.
06-22-2017 02:02 PM - edited 06-22-2017 02:03 PM
Attached is the VI posted, back saved in 2010. I don't have 2010 to test it with so no idea if it actually works.
EDIT: also if you are a student you can get LabVIEW for free, I believe it is the latest version. NI has said you get it free for 6 months but can keep renewing as long as you are a student.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-22-2017 02:24 PM
Thank you very much for your help. All up and running now!
Have a great day,
A student no longer stuck in 2010