LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording the results of LeCroy WaveRunner 62xi on board math functions with LabVIEW

I am a very new user of both LabVIEW and the LeCroy WaveRunner 62xi oscilloscope, so if the following is not possible please tell me so.  I would like to use LabVIEW to communicate my o-scope and record the data the o-scope takes using it's on board analysis software.  Specifically I am using the 'area under the curve' feature built into the o-scope to analyze my waveform and return a value.  I would like to use LabVIEW to record the area found by the o-scope in realtime on my computer. 
I am using VICP protocal and the available drivers to communicate with the instrument and have had good luck so far, but have hit a road block.  Does anyone have any suggestions?
0 Kudos
Message 1 of 11
(5,748 Views)
Are you using the LabVIEW plug and play driver from our instrument driver network or the IVI driver from LeCroy?
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 11
(5,733 Views)
Yes
0 Kudos
Message 3 of 11
(5,732 Views)
These are actually two completely different drivers.  Which one are you using?
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 4 of 11
(5,726 Views)
I think the whole point of Robert's question was to determine which driver you are using. A simple 'yes' is not really a good reply.
0 Kudos
Message 5 of 11
(5,724 Views)
Yes, I am using the driver available on the NI driver network
0 Kudos
Message 6 of 11
(5,719 Views)
I have the driver installed but unfortunately don't have the device.  I'm glad to help out, but may be shooting in the dark a little bit. 

What version of LabVIEW are you using?
What roadblock have you hit?
What have you accomplished so far?
Have you tried using any of the examples?
Which example is the closest to what you are trying to do?



Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 7 of 11
(5,708 Views)

I am using LabVIEW 8.0. 

Starting with the 'lcwave Acquire Waveform In Loop.vi' example I modified it to do kind of what I want.  I removed the 'lcwave Autosetup.vi' and setup the 'lcwave Initialize.vi' to never reset the scope settings.  By using the VICP protocol I can successfully communicate with the instrument and collect waveforms from any signal source.

 I have set the scope up to record all signals it receives on channel one.  Using the onboard area under the curve functions I can collected the area under the curve defined by the channel one signal and a preset gate on the instrument.  The data taken is recorded by the instrument using the built in trend line features and is displayed using the 'Function 1' output.  However, this built in trend function only has a memory buffer of 1000 samples (after 1000 samples have been taken it begins replacing older values with newer).  I am hoping to use LabVIEW as a realtime data dump to record data for experiments that may result in 65,000 total samples being recorded. 

At this point I have set up LabVIEW to identify 'Function 1' as it's source and I can successfully collect the trace associated with 'Function 1'.  Using the 'WDT Get Y Value.vi' from LabVIEW, setting the 'Y Postition' to 1000 and wiring the output to the 'Write To Measurement File' express vi I can collect and record all the new numerical values given by the instrument (the numerical values are what I am really after). 

My problem is this:  When I set up the instrument to record the number of data points taken and compare this value to the number of data points recorded by LabVIEW I am finding that the Scope is out pacing LabVIEW, LabVIEW is missing samples.  I have taken out all the programmable delays in the while loop of the vi.  Is it possible to speed up the rate at which LabVIEW takes data from the Scope?  Is it possible to set up LabVIEW to take all the data recorded by the Scope in 1000 sample intervals? 

Thank you so much for your patient help, I greatly appreciate it.

-Andy

0 Kudos
Message 8 of 11
(5,702 Views)
The Read Waveform VI for this driver is polymorphic.  This means it can perform different functions depending on what option you select in the purple drop-down menu below the icon.  Do you have "Single Waveform" currently selected?  You can change this to "Single Segment" to read multiple waveforms on one channel at the same time.  This should be much faster than reading them one at a time.
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 9 of 11
(5,687 Views)
Alan from LeCroy Tech Support here...
 
What do you mean by "outpacing" ?
 
Instead of reading back the F1 trace, you can also simply read back the measurement.  This will be far faster. See the attached example, which is streamlined to arm the scope, wait for an acquisition to be complete, wait for operations complete, and then readback the parameter value on P1 in one simple command string.
 
Feel free to contact me if you have any questions.
 
Regards,
Alan
--------------------

Alan Blankman, Software Engineer
Teledyne LeCroy
800-425-2000
http://www.teledynelecroy.com
alan.blankman@teledyne.com
Message 10 of 11
(5,656 Views)