10-06-2011 03:30 AM
Hi guys
I've been away from LabVIEW for 2-3 years and i am slowly regaining my skills.. My experience is very scarce with LabVIEW, so i hope you don't mind me posting simple qustions. We all have to start somewhere, right? 🙂
My goal is to:
1) Read the output from multiple thermocouples (i have 3 in my .VI, but i imagine using up to 10-15 or perhaps even more)
2) Display the temperatures in real time to the front panel
3) Write the temperatures and, if possible, the time (from sample time and sample number?)
I have completed most of my goals - i believe - as shown in the VI. I've created a task that samples from 3 sets of terminals on a USB-6215 and have configured a task in MAX that defines the type of thermocouple, sample freq etc..
Is this the *best* way of doing it? - and how do i get the time into my csv file?
In addition, how do i control which thermocouple temp goes to what display and to what column in the csv-file? - what is the best way of calibrating a thermocouple in LabVIEW?
Thanks in advance
10-06-2011 09:28 AM
I would advise a look-see at the LabVIEW example "Cont Acq Thermocouple Samples - Int Clk.vi" You need an internal clock or a delay timer.
What is the "best way"? Well, striving for "best" would mean scalable code, which in my opinion would means don't build Tasks in MAX. Build them programmatically.
Regarding the file writing, you'll find that wiring False to Append will not work in a continuous loop.
Your data will be written to the file in chunks of three data points, making three columns, in the order in which the channels were added to the Task.