LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thermocouple optimization - all settings on front pannel

Here's a new snippet. See if you can figure it out. The VI still needs work,

  1. What device are you using?
  2. You are reading 1 point at a time, eventually you will run out of buffer. Read 1/10 of the sample rate and average those values instead of a single point.
  3. Try to implement the math in the loop.
  4. Following GerdW's advice I read the file outside the loop.

snip.png

0 Kudos
Message 11 of 13
(77 Views)

Hi mcduff, thank you for your snippet. 

I will mostly be using 2 - wire type K thermocouples. I implemented the math but I notice 2 problems:
- Combo box is not imputing any selection despite I selected it so I cant read out the coefficients

- Program only reads first selected channel and not others

 

Got any ideas what could be wrong?

Regards, J

EngineerOneDay_0-1744213958445.png

 

0 Kudos
Message 12 of 13
(38 Views)

Look at your FOR loop.

  1. You have DAQmx set to download NChannels 1 Sample.
  2. You read the entire array in the for loop rather than each element individually. You want to process each value individually.
  3. How am I reading each element individually of the channel array in the for loop?
  4. How can you read each element of your DAQmx Read individually in the for loop?
  5. Lastly you want to combine those individual results into an array at the for loop exit.

 

0 Kudos
Message 13 of 13
(35 Views)