Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Weird signal repeating when sampling frequency increase

I'm using NI 9223 Compact Rio module with the NI cDAQ-9174 chassis to measure inverter output phase current.

 

The NI 9223 allows me to sample the parameter at a rate of 1MHz/ch maximum. 

Well if set the sampling frequency to 1MHz, a weird pattern in the current signal appears like the one in the figure below.

 

pastedimage1635768901459v4.png

 

When I reduce the sampling frequency, this disappears. The original signal does not contain this pattern and I checked by using the oscilloscope. So it's definitely the problem caused by the NI module when sampling frequency is very high.

 

Does anyone have any explanation why this happens?

0 Kudos
Message 1 of 7
(1,524 Views)

It looks like you're not continuously capturing and missing samples in-between.

 

Please share the source code to check for incorrect use of the instrument.

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 7
(1,503 Views)

Thank you for replying.

 

Here's my source code.

 

NI source code.PNG

 

0 Kudos
Message 3 of 7
(1,479 Views)

Nothing jumps out in the picture, though I'd urge you to learn to avoid the "Signal Manipulation" palette and those blue dynamic data wires.  Just use array indexing to extract waveforms of individual channels.

 

I do note that there's a pretty regular looking pattern and it seems to repeat at just about exactly 1 second intervals.  I also note that you've chosen to use a duration as a way to request the # samples to read.  Does that duration happen to also be 1 second?

 

Even if so, I can't fully connect the dots between that code pic and the previous graph, but I would see those things as likely clues.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 7
(1,465 Views)

It is possible that the "write to measurement file" action within the loop is slowing down the loop such that you're not reading the samples fast enough not to lose any samples.

 

I would try moving the write to file to another loop like a Producer-Consumer structure or use DAQmx TDMS log feature instead.

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 5 of 7
(1,459 Views)

yes the duration is also 1 second

0 Kudos
Message 6 of 7
(1,446 Views)

Thanks you for replying.

 

I will try the solutions you suggested

0 Kudos
Message 7 of 7
(1,445 Views)