LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using multiple Thermocouples with existing code

I'm very new to LabView and need to get a program up and running soon for a project. I was given some code that was used to log data from a usb device. I have it working for my device with one thermocouple. But would it be possible, from looking at the image, to use multiple thermocouples with this code? If anyone needs it i can upload the actual vi file too.Thanks very much for any help at all!

 

 

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

All you need to do on the DAQ side is to add more channels to the task.  Your analysis/saving of the data will need a little work since you are only indexing out the first waveform.


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
Message 2 of 6
(3,614 Views)
The whole VI seems flawed. Unless you are on RT, the timed loop doors very little. You should just use the hardware timing of the DAQ device. There is a waveform obtained but everything is discarded except for the first point. There is timing information in the waveform but that is also discarded and a different timestamp seems to be calculated. In general, much more complicated than it needs to be and with some loads of information.
Message 3 of 6
(3,596 Views)

Thanks for the replies guys, I'm still struggling to get this up and running tho. [Edit, Request removed] The main issue I can't get around is including a time stamp with the readings. I'm sure if i knew LabView better it could be easy but with the time constraints I'm on its proving to be too difficult. Thanks again. 

0 Kudos
Message 4 of 6
(3,517 Views)

No-one here is going to do your work for you, we will help guide you in the right direction though.

 

Just add additional channels to your 'Signal' which specifies the ai0 channel, I think you can use commas to specify multiple channels or use a colon to specify a range of channels. Then all you need to do is replace the Index Array (which takes only the first channel from the array) with a for loop (for each channel) with auto-indexing that converts the waveform to a string which you can then add to your build array with the timestamp.

 

For the timestamp, you can use 'get date/time in seconds' and then a format into string with the appropriate format string (look in the help) to format it in the right format you require.

 

This stuff is pretty basic so I suggest you have a look at some LabVIEW tutorials/training - there's lots available for free.

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 5 of 6
(3,510 Views)

Hey, thanks very much, i might edit my last post there so, don't want to break any of the forum rules, sorry about that. 

But that seems useful, I'll try it out. Sorry again 

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