LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do You Write Thermocouple Readings From Multiple Channels to One Text File?

Hi Everyone,

 

I am having difficulty writing a Labview program that allows me to combine readings taken from 8 thermocouples to one text file. I am using a NI cDAQ - 9174 with NI 9219 modules.
Attached is a copy of my program thus far. I have figured out how to combine readings from 8 thermocouples to one waveform chart but the text file will infact be more vital.

I am very new to Labview and only require it for this task so the simpler the solution the better. Apologies for the lack of technical language.

 

Any help would be much appreciated.

Amy

0 Kudos
Message 1 of 9
(4,623 Views)
Have you gone through the tutorials? Where are you wanting to save the file?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 9
(4,495 Views)
Hi Mike.
Yes I have gone through the tutorials. They all seem to show how to log one thermocouple but not multiple. If you know a tutorial that shows how to log multiple please let me know. I have got the program to successfully save as a txt that can be opened in notepad and I am quite happy with this option. I will be logging lots of data so the smaller the output file the better.
Amy
0 Kudos
Message 3 of 9
(4,422 Views)
To log a single value you wither write a scalar value to a binary file, or convert it to a string and write the string to a text file.

To log multiple values, either write an array to a binary file, or convert the array into a longer, delimited string and write the longer string to a text file.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 9
(4,418 Views)
You could also use tdms files to store the binary data or write it to a database.

Where are you going to be saving the data? How will the data be used?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 9
(4,416 Views)

AMEB wrote: but the text file will infact be more vital.

I recommend lookiing at the Export Waveforms To Spreadsheet File VI.  It should do what you need.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 9
(4,318 Views)
Thank-you both very much.
Unfortunately I have been unable to get any of your suggestions to work. Do you know of any tutorial links that show these processes with multiple channels? Every tutorial I watch is only for one channel.
Thanks again.
Amy
0 Kudos
Message 7 of 9
(4,221 Views)

Here's one simple possibility...

 

snippet.png

 

Of course, this shows incomplete file handling, and you'll probably want to truncate your floating point values to a few decimal places. I have used this kind of operations for generating text and csv files for thermocouples, much like you are doing.

 

Good luck!

Dan


0 Kudos
Message 8 of 9
(4,196 Views)

@AMEB wrote:
Unfortunately I have been unable to get any of your suggestions to work.

Then show us what you have tried and tell us where it is failing.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 9
(4,167 Views)