Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LeCory 9370 scop vi

Hello,

 

I'm quit new to LV and in need of some help.

I'm trying to use a LeCroy 9370 oscilloscope and have been able to retrieve data from the scope and to control it to some extent. What I would like to know is how can I not reset the scope every time I log on to it, I have marked the "reset" option in the initialize vi but some parameters still change.

Another thing I would like to do is acquire several parts from a wave form (getting the whole waveform with GPIB takes too long) is it done "simply" by putting several Read Wave vi's one after the other, each with different "# of first point"?

Is there a vi with which it is possible to get the cursor location and use them when reading the waveform?

 

I have attached one of the vi's I made as an attempt for the abouve, but it's not 100%...

 

Hope to get some help,

 

Amir Bernat

Ben Gurion University, Israel

0 Kudos
Message 1 of 13
(5,688 Views)

Hi, 

First, I do not know where you got the instrument driver from. Whether it is provided by NI?

Second, as I know, the Initialize VI has a "Reset" boolean control to let user decide whether to reset the instrument or not when connect with the model in LabVIEW. If you mark as "Do Not Reset" then the RST command will not send to the model. Some instruments also have the SAV and RECall command to save and recall the instrument state. You can check the manual and it may help you to resolve the parameter change issue.

 

 

0 Kudos
Message 2 of 13
(5,676 Views)

Hello meteor and thank you,

I got the driver from the NI site. I turned the Boolean value to be "F" (as you can see in the vi attached), but it is still changing the scop parameters. I have not seen an RST or other command of that sort in the LC vi tree. Is there anyone with some examples with this type of scop?

0 Kudos
Message 3 of 13
(5,668 Views)

Hello Amir,

       The change in setting might be caused a default setup or auto setup that is being called.  Overall my advice is to explicitly configure all of the necessary instrument settings in your application.  That way you will not be relying on settings that "should" be on the instrument, either from prior applications or from manual settings.

       If you explain more about your goals with the instrument, the community might be able to provide specific guidance.

 

Cheers,

 

NathanT

0 Kudos
Message 4 of 13
(5,643 Views)

Hi Amir,

 

If you set the ID query and Reset booleans to false, the Initialize.vi still sends the following Commands:

 

*CLS;CORD HI;CFMT DEF9,BYTE,BIN;CHDR OFF

 

If you look at the block diagram for the initialize.vi, you will see a sub-vi in the "False" case for the Reset.

The sub-vi is what sends the above commands.

 

*CLS (clears all of the status registers), CORD HI (is the comm. order Hi byte or Lo byte first), CFMT (format for the waveform data to be sent, the values that follow are the settings for "Block Format", "Data Type", and "Encoding"), CHDR (Command Header).

 

Just in case, here is a link to the Remote Control Manual from the LeCroy Website: http://www.lecroy.com/files/manuals/WM-RCM-E_Rev_D.pdf

 

All of the commands used in the driver are documented in the manual.

 

I hope this helps.

 

Leonard

 

Message 5 of 13
(5,634 Views)

Hello Nathan and Leonard,

 

thank you for your help, I'm still working on it. I've read in the Remote Control Manual that I can use programs such as ScopeExplorer to get all the defined parameters of the scope so I could configure it afterwards with the VI I made. Hope to get it to work finally!

 

Amir

0 Kudos
Message 6 of 13
(5,582 Views)

Hello again, I have recently faced a new problem I was unable to solve, in the attached VI I have been able to get only a part of the WaveForm of the scope, thing is that while I set the scope at T~12E-6[s] the acquisition was only up to 5E-6 (as can be seen in the screen shot). I did not find the command that was sent and changed the area presented on the scope, what should I change so that the presentation on the scope will remain the same so that I could get the proper part of the waveform out?

 

Amir

Download All
0 Kudos
Message 7 of 13
(5,413 Views)

Hello Amir,

 

I thought I posted this yesterday but I guess I was having internet issues.

 

I do not have LabVIEW 10 installed on my PC so if you could save your VI for 2009, I can look at it for you.

 

On the scope, you can browse the pulldown menus to "Utilities/Utilities Setup..."

Select the "remote" tab and at the far right, you will see a button to view the log.

 

Set up the log to log all events and when you display it, click the button to clear the log.

Then run your code.  The log will show you all of the commands that are being received.

 

This will at least tell you what the command was that changed the setting.

 

Regards,

Leonard

0 Kudos
Message 8 of 13
(5,323 Views)

Hello Leonard,

 

I will try to lookup which command is the problematic one. I have converted the file in to LV09 (I hope it worked) and attached it.

 

Thank you,

 

Amir

0 Kudos
Message 9 of 13
(5,276 Views)

Hi Amir,

 

I do not see anything in your VI that sets up the Horizontal scaling.  I also see that you are transferring the waveform in byte format (this simply drops the last 8 bits from the 16 bit value).

 

So, if you were to run this VI with the scope attached, you would get a waveform that does not have the same vertical resolution (this does not change the number of data points, only the size of each one.  If you are expecting 16 bits and you only get 8, you may be putting them together resulting in half of the expected number of data points) as the scope displayed waveform and since there is nothing addressing the timebase, it will be what ever was setup last on the scope.

 

By the way, the value you have wired for "time" on the trigger edge setup vi does not do anything unless you set the "Holdoff" to be "TRUE".

 

I would first try setting it to return the values in Word format to see if that fixes it.  If that does not work, you will need to figure out where you are setting up the Horizontal scale and see if maybe the scope is generating an error when you set it or if there is some other place that it gets set after you set it to the desired value.

 

Hope this helps.

 

Leonard

0 Kudos
Message 10 of 13
(5,216 Views)