LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[DCPower] Perform multiple measurements with sequence output

I want to output a continuous sine waveform using a PXIe 4139. I then want to measure back x periods, n times. The n waveforms will then be averaged to reduce the noise.

 

Example of measuring 4 periods, 5 times.

Basjong53_0-1724855779662.png

 

I set the sequence output as a single period, with repeated output. But how can I measure back exactly n periods? There should be a trigger of some sorts when a new sequence (i.e. a new period) is being output. But I don't find it in the list of the "input terminal" list in the configure measure trigger vi.

 

I tried to trigger on the source complete event (i.e. start of the sequence) and then measure back the same number of sample as the output samples for a single period. But the problem here is that the even though I set the same value for "Aperture Time" and "Sequence Step dt", after committing the values, they are often different! causing a desynch of output and input.

Basjong53_2-1724856444531.png 

Basjong53_3-1724856499380.png

 

What's the best way to do this? It's fine if (in the above example) I measure 4 periods, miss the 5th, and then measure the next 4.

0 Kudos
Message 1 of 3
(234 Views)

If you're generating exactly x samples or steps, you would know how many steps form a period or cycle.

 

Now, if you have 1 or y measurements per step, you can split the overall data to back track and extract the n cycles of interest.

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(229 Views)

As I mentioned, often the output rate is different from the input rate. Meaning that the number of sample I generate per period isn't the same as the number of samples I should measure per period.

0 Kudos
Message 3 of 3
(211 Views)