(LabVIEW 6.1) I have a while loop and within that while loop is a program that
I need to compare the present load with the previous load to determine the direction of the actuator (i.e. is it loading or unloading the specimen). When it reaches the ends, it needs to reverse. For example: If it's loading the specimen, when it reaches 10 pounds it needs to begin unloading and if it reaches 0 pounds then it needs to begin loading again. It's easy to condition the ends, but it's when its in the middle that it gets confusing.
I think I need to use an array to simply store the previous value, check it with the present value, use it, then rewrite it with the present value. All I need is a 1D array. I can't seem to figure out arrays in LabVIEW and the array examples are not clear.
Any suggestions?
An alternate way to do it which, MIGHT BE EASIER and it would avoid comparing previous values, would be to simply run the actuator until it hits the end conditions and only at that time prescribe directions. This could be done by writing the rising or lowering voltage (5V or 0V) to an array and if at the end, the array is rewritten and if not at the end the array remains the same. Then at each loop the array value is called. But still... I don't understand arrays.
>> The people in this forum are great! All of the responses I get are really helpful and I really appreciate it. I'm a new engineering grad student working in a lab over the summer and since not to many people here are familiar with labview, this forum has REALLY helped out. Thanks!