LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am performing a tensile test, and I would like to record the maximum value of my waveform, how do I do this?

I am performing a tensile test, and I would like to record the maximum value of my waveform, how do I do this?
0 Kudos
Message 1 of 13
(3,487 Views)
If you have a waveform datatype, use the function Waveform Min Max on the Waveform>Analog Waveform palette. This will return min, max, and associated times for each. If you data is a normal array of doubles, then Array Max & Min on the Array palette will do the same thing - just won't have the time data.
0 Kudos
Message 2 of 13
(3,487 Views)
I tried that and it is not working for me. The indicators for the max and min show the same exact values at all times. I want the max indicator to show only the highest value of the waveform. In other words the peak value of the curve. With the "Waveform MIN MAX", it just show the current value of the waveform.
0 Kudos
Message 3 of 13
(3,487 Views)
Send me a direct e-mail at dgcontrols@sympatico.ca. I have something that may interest you. DO NOT respond to this NI discussion forum.
Have a nice day,

Dave
0 Kudos
Message 4 of 13
(3,487 Views)
What is the nature of your curve? Is it multiple acquisitions and appended waveform data types or is it something else? The function will detect the max y value in a waveform so I wonder how exactly you've got it wired. Could you post your VI to look at it?
0 Kudos
Message 5 of 13
(3,487 Views)
A standard tensile quasi-static tensile test (I am basically making a small instron machine). I am testing one material, from no load until it fractures.
0 Kudos
Message 6 of 13
(3,487 Views)
I think what Dennis is after is not the technical nature of your test, but how you are acquiring and handling the data in LabVIEW...
0 Kudos
Message 7 of 13
(3,487 Views)
Like tmh says, I was interested in the data. Anyway, from one of your other postings, I looked at your program and saw what your're doing wrong. You're using AI Sample Channel and what that does is take a single scan and returns a single voltage measurement per channel (in your case a single one). The waveform data has a Y array with a single element and that's why the Wavefrom Min Max shows just the latest measurement. The Build XY Graph Express VI makes your XY graph act as a chart so over time, you see an entire curve. To get the max from the graph, from the wire between the Build XY and the graph indicator, wire an index array function, I think you need 0 as the array element. from the output of the index array, wire a
n Unbundle by Name and select the Y array. To the Y array, wire the Array Max & Min function. After getting the max value you could also use the max index returned to index out the X array and get the time of the max value.

As an additonal comment, you're using several separate instances of AI Sample Channel, Write to Digital Line, etc. You should try to read all channels at the same time instead of one at a time. This will make the program much more effecient in its use of the daq hardware. You're also not using any error in/error out connections. Besides not knowing if there is an error that occurs, you might have problems with the sequence of events that happen because dataflow is not enforced. As an example, in several places you have a Read From Digital Line and a Write To Digital Line together. It may not matter in your case which occurs first but the way you've got it, the order is random - up to the compiler. You may be expecting one way but get the opposite.
0 Kudos
Message 8 of 13
(3,487 Views)
That sounds rather ominous.
0 Kudos
Message 9 of 13
(3,487 Views)
I am still not getting my maximum voltage. With the wiring that you have suggested, the Array Max indicator is just showing me the time.
0 Kudos
Message 10 of 13
(3,356 Views)