LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real time data monitoring using multiple thermocouples via indicators and waveform

Solved!
Go to solution

I apologize in advanced for this question is probably somewhat simple but I am brand new to labview as well as to the forum and could use some pointers. I have a CompaqDAQ with two 9213 16 channel modules and I am trying to read in 30 thermocouples into a waveform as well as display 30 indicators so I can label each indicator with the corresponding thermocouple for real time monitoring. Each thermocouple corresponds to a specific location and it is critical that the interface have an accurate indication or label for each one. I am wondering if there is an easy way to do this besides splitting the signal and having 30 thermometers on my block diagram? Perhaps an array of some sort? If I use an array to create the 30 thermometers, does the DAQ assistant automatically sort the thermocouples in increasing numerical order. For example, would the first and second indicators on my interface automatically be assigned to the a0 and a1 channels of the first module or would I have to do this manually? Same for the waveform?  Thanks a lot!

 

PS - Not sure if this message needed more specifics but just let me know if more info is needed and I will provide!

0 Kudos
Message 1 of 6
(3,200 Views)

Welcome to the forum.  It is always a good idea to attach your VI when asking code specific questions.

 

I'm a bit removed from the last project where I used a cDAQ but I'm sure it is possible.  I'll try to experiment a little to help you out and get back to you.  If you do use an array on the block diagram it will sort according to your channel.

 

You will need to assign the correct physical channel name somewhere in your setup, whether it is in MAX, a setup arrays or some other means if you want to give a specific detailed name to each.

0 Kudos
Message 2 of 6
(3,183 Views)

Here, take a look at this and hopefully it helps.  I know being new to labview, this may seem overwhelming.  Take some time to digest it and use your control help window to try to get a better understanding of what is happening.  You will need to open the block diagram and change the task to the one you created on your computer.

 

This example should illustrate some of the manipulation of names, etc. that you can do with property nodes.

0 Kudos
Message 3 of 6
(3,172 Views)

Thanks a lot! Sorry about not attaching the VI. I did however attach it this time! Thanks for pointers and thanks for looking into it further.

0 Kudos
Message 4 of 6
(3,167 Views)
Solution
Accepted by topic author FryHard

I see you are using the DAQ Assistant to create your task.  Now I understand why you are asking about labeling.  That is the NI Salesman's easy start up spiel...  But anyway, have you ever created a task in MAX instead of using the DAQ Assistant?  The interface is similar, and there may be a step or two more, but your end application will be more efficient and you will have more options with your data and properties.  For instance, I tried to update the physical channel names in the DAQ Assistant setup ,which it does let you do, but it doesn't propagate that change forward to the waveform chart legend.  Also, I don't know of any property node for that dynamic data type, although I never use it either.  I suggest setting up your task and channels in MAX, if you don't mind giving it a go.

 

I wrote another example since I figured I didn't really lead you to the end with helping you out.  It uses a cluster, although a little barbaric.  I thought there was a more eloquent way of doing it by changing the labels, but I could not get it working as I anticipated.

Message 5 of 6
(3,153 Views)

I appreciate all the help, your last suggestion worked out great. GOOD TO GO!!! Thanks again!

0 Kudos
Message 6 of 6
(3,136 Views)