10-13-2009 05:41 PM
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
Solved! Go to Solution.
10-14-2009 03:51 PM
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
10-15-2009 03:22 PM
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:
10-15-2009 04:16 PM
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.
10-16-2009 01:42 PM
Hello,
In order to split a 2D array into 1D arrays, you would use the Index Array function.
-Zach
10-16-2009 02:42 PM
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
You do not need to attach anything to the index arry to get it to increment.
10-16-2009 07:43 PM
thanks. that got it.
mods can delete this thread now,
10-19-2009 07:51 AM
And why would you do that?