09-13-2016 03:57 PM - edited 09-13-2016 04:22 PM
I am using a DAQ to measure AC current. Currently, the data is being displayed continuously on a waveform chart. I would like to find the peak current and display on a new waveform chart along with it's associated time stamp as the current data is being acquired. I've tried using Waveform Min Max.vi and am able to get the Peak Current Value and the time stamp; however, I am not able to build a new waveform since the waveform is expecting an array of values. How can I build an array of peak current with its associated time stamp?
09-13-2016 04:45 PM
If im not mistaken you need an array of elements into the build waveform block?
If so can you just use the build array function and input that into your chart? It will be an array of one element.
09-13-2016 04:49 PM
Yes, but I need to know the time of when the peak current measurement was made so my waveform chart would have peak current vs. time. The problem with the build waveform block is that it takes a timestamp and not an array of time. I will lose the time information in this case.
09-13-2016 05:17 PM
The waveform min & max gives you a timestamp for the min and max values of the waveform. Input that as your T0 for your build waveform function.
I attached a very simple VI. Let me know if this does what youre looking for.
09-13-2016 05:22 PM
I tried doing that but I got a broken arrow for the peak current measurements since that isn't in an array. Could you please do a screenshot of your example since I am running LabVIEW 2011 and cannot open it.
Thanks!
09-13-2016 05:27 PM
Attached a 2011 version. Let me know if that helps.