LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring thermocouple data from mutliple channel

Hi,
I am developping a temperature measurement data acquisition application (Using the NI-9211). I already managed to acquire data from one channel at a time and plot in on a graph.
But my final system should allow the user to select from how many channels they want to acquire data, up to  4 channels at the same time. (the NI-9211 got 4 channels).
Any hint or help on how to do that would be greatly appreciated.
Thank you

0 Kudos
Message 1 of 8
(3,560 Views)
You should be able to just use the Ni Daqmx software and use the Create Channel > AI thermocouple Channel vi (the Create Channel vi is polymorphic, meaning drop it on the block diagram and then use the drop down menu to select which function you want it to perform).  That will give you a 1D array of the analog ports that you are looking to read, and then you can progmatically select which thermocouple to display.

You should also check out the Thermocouple Examples that are shipped with LabVIEW.
Kenny

0 Kudos
Message 2 of 8
(3,537 Views)
Thank you for your help.

I got another problem now:  I am fixing the plot names to Thermo1, Thermo2 .... but whenever i run it, the plot names changes to : cDAQ1Mod4/ai0, cDAQ1Mod4/ai1 ,etc... (See attached picture).
How can I fix them permanently?
Thank you
0 Kudos
Message 3 of 8
(3,517 Views)
How do yo set the name? Is it through the graph properties of the chart or graph?
 
The way I do it is to use the property nodes of the graph. You have to select the plot then set the plot name.
0 Kudos
Message 4 of 8
(3,503 Views)
I tried using the Property Node -> Node name, but with no luck (Can't figure out how to use it properly).
I included a picture showing how I want my interface to look like. The user chooses which channel by checking its corresponding box and the graph will only display those checked.
What is the easiest way to implement it?
Thanks for your help.
0 Kudos
Message 5 of 8
(3,483 Views)
You need to select the graph and get to property nodes,  active plot and plot name (this is another level below.). First set the plot which is a number between 1 to x. After you have done that, you need to set the plot name. That should work
0 Kudos
Message 6 of 8
(3,463 Views)
Joseph,

That could work, although if you were continually updating and renaming the plots, you might see it flicker a bit.

An easier way would be to right-click the graph/chart and check the "Ignore attributes" option.  This will prevent the chart from taking the names from the signal source.
Message 7 of 8
(3,442 Views)
It worked, thanks a lot guys
0 Kudos
Message 8 of 8
(3,436 Views)