From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UNABLE TO UNDERSTAND .LVM FILE FROM OSCILLOSCOPE TO LABVIEW 2016

Hi there, i am using Labview 2016. I am getting voltage and time values from oscilloscope to labview using "write to measurement file". i am using option " X values (Time column)- one column per channel" and saving it as .lvm file

 

Data i am getting like following

 

Time        Voltage

0.000000 0.500000
2.000000E-10 0.580000
4.000000E-10 0.660000
6.000000E-10 0.740000
8.000000E-10 0.820000
1.000000E-9 0.880000
1.200000E-9 0.940000
1.400000E-9 0.980000
1.600000E-9 1.040000
1.800000E-9 1.080000
2.000000E-9 1.120000
2.200000E-9 1.160000
2.400000E-9 1.200000
2.600000E-9 1.240000
2.800000E-9 1.280000
3.000000E-9 1.300000
3.200000E-9 1.320000
3.400000E-9 1.340000
3.600000E-9 1.340000
3.800000E-9 1.360000
4.000000E-9 1.360000
4.200000E-9 1.340000
4.400000E-9 1.320000
4.600000E-9 1.300000
4.800000E-9 1.280000
5.000000E-9 1.260000
5.200000E-9 1.240000

.

.

.

1.194000E-7 0.000000
1.196000E-7 0.000000
1.198000E-7 0.000000

 

 

All time column have values in E-9 to E-7. I didn't understand either this time in seconds, minutes or hours. E-7 means 0.0000001....

But the actual time to save this data was more than 1 minute i believe.

Can anybody explain the format of data saved in .lvm file from oscilloscope?

 

Thanks

0 Kudos
Message 1 of 9
(3,091 Views)

@mubmeh wrote:

Hi there, i am using Labview 2016. I am getting voltage and time values from oscilloscope to labview using "write to measurement file". i am using option " X values (Time column)- one column per channel" and saving it as .lvm file

 

Data i am getting like following

 

Time        Voltage

0.000000 0.500000
2.000000E-10 0.580000
4.000000E-10 0.660000
6.000000E-10 0.740000
8.000000E-10 0.820000
1.000000E-9 0.880000
1.200000E-9 0.940000
1.400000E-9 0.980000
1.600000E-9 1.040000
1.800000E-9 1.080000
2.000000E-9 1.120000
2.200000E-9 1.160000
2.400000E-9 1.200000
2.600000E-9 1.240000
2.800000E-9 1.280000
3.000000E-9 1.300000
3.200000E-9 1.320000
3.400000E-9 1.340000
3.600000E-9 1.340000
3.800000E-9 1.360000
4.000000E-9 1.360000
4.200000E-9 1.340000
4.400000E-9 1.320000
4.600000E-9 1.300000
4.800000E-9 1.280000
5.000000E-9 1.260000
5.200000E-9 1.240000

.

.

.

1.194000E-7 0.000000
1.196000E-7 0.000000
1.198000E-7 0.000000

 

 

All time column have values in E-9 to E-7. I didn't understand either this time in seconds, minutes or hours. E-7 means 0.0000001....

But the actual time to save this data was more than 1 minute i believe.

Can anybody explain the format of data saved in .lvm file from oscilloscope?

 

Thanks


You'll have to more info, like what make/model of the oscope, and - most importantly - the code you are using to capture the data.  (Or, if you are using a driver, where can we find it?)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 9
(3,074 Views)

Hi Bill, thanks for your reply.

I am using RIGOL DS1052E (DSO).

Circuit diagram which i am using is following

Lab view code.png

 

I used instrument drivers to find drivers for my DS1000 series oscilloscope.

0 Kudos
Message 3 of 9
(3,026 Views)

Hi mubmeh,

 

which settings did you use for your scope measurement? What's the sample rate?

 

Can you show the waveform(s) delivered by your VI? Seems the sample interval is 2e-10s = 0.2ns…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(3,023 Views)

Hi GredW, thanks for your reply.

Yes, i think you are right.Rigol waveform.JPG

 

Oscilloscope is showing 10 ns. I tried to change it when i was running it through my laptop but it couldn't. Also, i changed time scale before saving waveform data but as soon as i connect my laptop to oscilloscope, it again automatically changes to 10 ns.

Do you think is there problem in my code which i am using?

I am new to Lab View, your little will be very fruitful for me.

Many thanks again.

0 Kudos
Message 5 of 9
(3,016 Views)

Hi mubmeh,

 

as soon as i connect my laptop to oscilloscope, it again automatically changes to 10 ns.

When the scope changes its setting just by plugging in a USB cable then your VI isn't the problem.

When the settings change when you run the VI then it is…

 

You will find all needed commands in the manual of your Rigol. Compare the commands and their parameters with all settings used in your device driver VIs…

Best regards,
GerdW


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

Hi GredW, sorry i can't communicate you what i want to say. Yes, problem is when i run the VI, sample time rate changes automatically on the oscilloscope, otherwise it's okay.

 

Many thanks, 

Regards

mubmeh

0 Kudos
Message 7 of 9
(3,006 Views)

I see that maybe you are new to instrument control.  Dig around the manual, then see if you can come up with a list of commands that mimic what you want to do by manually pushing buttons, twisting knobs and stuff.  See if you can get it working.  We're always here to help if you need it.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 8 of 9
(3,005 Views)

Many thanks bill. 

0 Kudos
Message 9 of 9
(3,002 Views)