0

I need to monitor an AC Voltage waveform and record the RMS value when the breakdown happens. I roughly know how to acquire data from videos I have watched, however, it is difficult for me to produce a solution that reads the Breakdown Voltage Value. Ideally, I would also take a screenshot along with the breakdown voltage value,

In case you are not familiar with this topic, When a breakdown happens the voltage will drop immediately to zero. So what I need is to measure the voltage just before it falls to zero, and if possible take a screenshot. This is an image of a normal waveform (black) with a breakdown one (red).

enter image description here

nekomatic
  • 5,988
  • 1
  • 20
  • 27

1 Answers1

1

Naive solution*:

  1. Take the data and get the Y values (this would depend on the datatype you have, which would depend on how you acquire the data).
  2. Find the breakdown point by iterating over the values and maintaining a couple of flags (I would probably say track "got higher than X" and once that's true, track "got lower than Y").
  3. From that, I would just say take the last N points (Get Array Subset) and get the array max. Or just track the maximum value as you run.

Assuming you have the graph in a control, you can just right click and select Create>>Invoke Node>>Export Image.

I would suggest trying playing with that with a VI with static data which you can repeatedly run to check how your code behaves.

*I don't know the problem domain and an not overly familiar with the various analysis VIs that ship with LV, so there are quite possibly more efficient ways of doing this.

Yair
  • 2,266
  • 12
  • 12
  • It looks to me like a bit of smoothing or low-pass filtering in between (1) and (2) would be in order, to avoid detecting spurious higher->lower transitions. – nekomatic May 26 '22 at 15:51
  • My thought was simply to make X and Y in step 2 far enough from each other to avoid that problem, but we don't have enough information to know for sure if it can work. Like I said, naive solution. – Yair May 29 '22 at 06:40