08-08-2008 08:48 AM
08-08-2008 09:49 AM
08-08-2008 09:55 AM
08-08-2008 10:15 AM
Hi,
If I were you I would always tak a reading and programmatically use a peak detector VI (there is one to work on arrays and one pt by pt) that will return the peak values and the index in the case of feeding it an array. Is this the functionality you are after?
Regards
08-08-2008 10:41 AM
Of course it can be done with LabVIEW. My reason for asking the question about what hardware you had is that if you had the right hardware then you could do it in hardware. In LabVIEW all you need to do is to have a loop that's continuously reading the gauge and see if you've hit a peak based on the value that's read. You can do this with the Peak Detector function, as suggested, or just by looking at the value and determining if you're on your way up or down (indicating the upswing or downswing of the cycle).
@BER1 wrote:The load cell is connected to an SCXI strain gauge module. Can't the count be done in Labview?
08-08-2008 10:44 AM
Hi James,
Just tried the Peak detector vi, not exactly sure if it'll do what I want. Is there any chance you could show me a simple bit of example code using it i.e. using a numeric control such as a knob as the input signal and detecting the peak every time the value is above 10 for example?
Thanks
08-08-2008 11:02 AM
Hi,
Attached is a sample VI that shows the two types of peak detector available side by side. For the point by point graph I have also divided by the cycle time in samples and returned only the quotient that should give the cycle number. Is this what you were after?
Regards,
08-08-2008 11:17 AM