LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Zeroing Array Values

I am trying to write a VI that takes in a force and a displacement from a DAQ.  First I need to be able to zero the force values before the car is rolled onto the scales and second once the string pot. is placed on the vehicle I need to be able to zero the reading so the current displacement now becomes zero.  Right now my VI simply subtracts the initial displacement value from all the recorded values which works but it is not very repeatable.  I do not have anything for zeroing the scales yet.  I cant figure out how to accomplish this and I am very new at labview so any help would be appreciated.  The example VI's and other questions on this board have gotten me this far but I am now stuck...for about 3 days now.
 
I attached the VI if that helps.  The force values come from the sum of three load cells for each right and left side.
 
Thanks
0 Kudos
Message 1 of 3
(2,656 Views)
Hi gte499z,
try this example.
Mike
0 Kudos
Message 2 of 3
(2,649 Views)
Thanks Mike, but I'm having trouble understanding the syntax of what you just did, do you mind explaining?  I have no experience with this software and my boss assigned me to this task for some reason.  Also, how can I remove all the data points existing before I zero out everything.  Right now the graph displays all the data points but I just want the ones recorded after I press zero.
 
Thanks again.
0 Kudos
Message 3 of 3
(2,632 Views)