LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

keeping a constant temperature

Solved!
Go to solution

Hello to all,

 

Setup & Problem: I have an daq board that will measure the temperature of 6 thermocouples. I want the average temperature of the last 3 thermocouples to be as close as possible to the average temperature of the first 3 thermocouples. In order to do this, I  eventually want to have a PID voltage controller for a heater set up near the last 3 thermocouples. However, for now Im working with a pseudo on/off controller. Anyway, I'm having trouble comparing the signals from each thermocouple. I've attached my current vi for your consideration.

 

Any help in comparing the 6 different signals or how best to create a PID voltage controller would be much appreciated. 

 

Thanks,

jtv  

0 Kudos
Message 1 of 8
(3,913 Views)

Hello,

 

Where exactly are you running into trouble? I see that you are indexing your array to provide inputs to the AVG Top Temp VI, but you are not zero indexing. Is there another channel that you are reading from? Your VI is also missing dependencies for the subVIs that you used so I cannot look at those. Some more information would be useful in order to help you.

 

-Zach

Message 2 of 8
(3,870 Views)

Thanks for the reply,

 

Basically I'm not able to isolate the last readings from each of the channels. I'm getting empty arrays after decimating the main array. I'm including a newer version of the same vi. It should be a more clear as im just comparing 2 thermocouples instead of my previously stated 6. Here's the block:

 

pdaq1.jpg

0 Kudos
Message 3 of 8
(3,845 Views)

whoops. I just realized I'm indexing only the first few elements. That's a mistake. 

 

So to start over (if you can bear my initial abstruseness), I'm receiving temperature measurements in the form of a 2D array. The temperatures from each channel are interlaced in that array. I want to split the 2d array up into 1d arrays. How can I do that.  

0 Kudos
Message 4 of 8
(3,828 Views)

Hello,

 

In order to split a 2D array into 1D arrays, you would use the Index Array function.

 

-Zach

Message 5 of 8
(3,813 Views)
Solution
Accepted by topic author JTV

Looks like this. When you index the array all you have to do is make the index array vi longer and it automatically indexes to the next number

 

2d to 1d.png

 

You do not need to attach anything to the index arry to get it to increment.

Tim
GHSP
Message 6 of 8
(3,809 Views)

thanks. that got it.

 

 

mods can delete this thread now, 

0 Kudos
Message 7 of 8
(3,792 Views)

 


mods can delete this thread now,

 

 

And why would you do that?

0 Kudos
Message 8 of 8
(3,766 Views)