LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separating 1D array of clusters containing 2 elements

Oops, I originally posted this in the FieldPoint forum...my bad!  I am using the PID Setpoint VI (with LabVIEW 7.1) and I would like to be able to enter my set point values on the front page in engineering units, not percentages or voltages.  I am guessing that I have to separate this 1D array of clusters of 2 elements (time, setpoint) and then somehow separate them again to isolate setpoints, put in my conversions to get to percentages (or voltage...still haven't figured out if the PID setpoint vi uses setpoint as a percent or a voltage, which is what i'm outputting to control a pump), and then cluster them back together to be fed into the PID Setpoint VI.  Does anyone know how I can do this?
0 Kudos
Message 1 of 4
(3,797 Views)

See the attached VI and control, though I don't know what the correct conversion is.

 

Certified LabVIEW Developer
NI-VLM Administrator
Download All
0 Kudos
Message 2 of 4
(3,790 Views)
I don't have the PID vi, so I don't exactly know what the cluster looks like.  But here is a way to convert the second cluster element of all clusters in the array and save them back to the array.
 
 

Message Edited by tbob on 09-05-2006 02:25 PM

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 4
(3,785 Views)

Here's another way to do it...just scale the desired cluster element as you wish, but leave the other element unchanged (by dividing by 1, or adding zero, etc.).  As altenbach would say, "Look ma, no loops!"

-D

Message Edited by Darren on 09-05-2006 03:33 PM

Message 4 of 4
(3,777 Views)