LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI osciloscope -signal offset

Hello all,

 

i am ating VI osciloscope.

I manage to adjust V/div and Time/div, but problem is because my signal is not around 0.

I am using NI6009-usb for aquiring signal.

Same signal on real osciloscope looks as on the picture 2. VI osciloscope signal on picture 1.

Can someone please explain me how to get signal around 0?

VI is in att also...

 

Thank you.

Milan

Download All
0 Kudos
Message 1 of 6
(2,335 Views)

Hi milan,

 

Can someone please explain me how to get signal around 0?

Technically the answer is: calculate the DC offset and subtract it from your signal…

 

A better answer would be: Please compare the input settings of your scope with those of your USB6009! Do you use the very same settings for both? Is the scope using Dc or AC coupling? Does the scope apply some offset?

 

Btw. the FOR loops in your VI could be simplified like this:

check.png

I also recommend not to set the same properties in each iteration of your loop!

Use (atleast) two loops to separate DAQ from UI handling…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,318 Views)

Hi Gerd,

 

I am using AC settings on scope. I am not shure how to adjust 6009 for AC or DC. I am new in this...

calculate the DC offset and subtract it from your signal…

how to calculate DC offset ? 🙂

 

Also i noticed, when i use DC coupling on scope, and there is no signal source on probe, scope shows positive voltege approx +1V. In the same time my VI show negative  -1V.

 

Thank you for FOR loop, much simplier.

 

0 Kudos
Message 3 of 6
(2,311 Views)

HI milan,

 

do you know what "AC coupling" actally means?

And which electronic circuit is used with AC coupling?

Once you know you could build the same circuit and use it with your USB6009…

 

how to calculate DC offset ?

Basically it's the average of the signal…

But LabVIEW already comes with a lot of signal processing functions in the "Signal processing" functions palette!

Maybe a good time to learn about the functions in this palette?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,308 Views)

My scope has coupling options: AC, DC, and GND

As far i now,

 - DC allows all signals to pass.. AC and DC

- AC pass only AC; while DC is cut off.

-  and GND doesnt pass niether.

 

You mean like this. picture 3 in att.

Problem is because in that case, signal moves all around the VI screen. It moves up and down...

 

Download All
0 Kudos
Message 5 of 6
(2,304 Views)

Hi milan,

 

Problem is because in that case, signal moves all around the VI screen. It moves up and down...

And why is that?

Because you average the signal visible on your graph - which is NOT a complete multiple of the periodic signal.

 

Have you found the electronic circuit used for AC coupling right now? Why don't you build it up?

See here - or here!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,300 Views)