08-01-2013 05:47 AM
Hi guys. This is one of the first time I use SCPI and I'm in trouble.
I was able to find these commands:
*RST;
*STB?;
*CLS;
ALST?;
to reset and check the status byte register and the *IDN? command as well.
Now I want to know which are the commands to make
1-an horizzontal/vertical set of the channel and to switch on for example the channel 1 (i'm using the LeCroy 64Xi).
2-a "peak to peak" measurement
I have the guide but i'm loosing my mind and eyes looking at all those commands... this is insane
Thank you for your help
08-01-2013 06:10 AM
Hi inuyasha,
I have the guide but i'm loosing my mind
Don't lose, but make up your mind 😄
You want us to read the manual of your device because you ... eh what?
Each command is described (in detail with it's options), so study your manual and play around with testing those commands!
08-01-2013 06:17 AM
Hehe, Gerd.... still maybe LeCroy don't provide much information on this.
@OP: SCPI stands for Standard Commands for Programmable Instruments
Therefore, all of these commands are defined in this standard and the documentation should be available online. Still, each instrument vendor can add hardware specific commands and even change their syntax (as they are not part of SCPI). Because of this, good vendors (i *think* LeCroy counts towards them) provide a complete documentation for their products which cover both SCPI and specific commands for their devices.
From that point of view, Gerd is absolutely correct: Contact the vendor if they don't provide the documentation online.
Norbert
08-01-2013 06:51 AM
well ofc not i hoped that maybe someone already know the command.
By the way I have found these on the manual but I'm not sure:
HORIZ_INTERVAL: float ; sampling interval for time domain
; waveforms
HORIZ_OFFSET: double ; trigger offset for the first sweep of
; the trigger, seconds between the
; trigger and the first data point
if those set the channel or not.
08-01-2013 06:56 AM
@inuyasha84 wrote:
By the way I have found these on the manual but I'm not sure:
-- BLAH BLAH --
if those set the channel or not.
To gain surety, use those commands and observe..!!
08-01-2013 06:58 AM
Rather than trying to send commands, I would suggest that you download the driver for this instrument.
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=8017
08-01-2013 07:04 AM
Phillip thank you for your suggest but the purpose is to use the SCPI language 🙂 I have to learn at least the most common commands 🙂
08-01-2013 07:37 AM
@inuyasha84 wrote:
Phillip thank you for your suggest but the purpose is to use the SCPI language 🙂 I have to learn at least the most common commands 🙂
School? If not, then why bother? If somebody already made a good driver for you, use it and move on to your next problem. I know I don't have time to screw around with that.
08-01-2013 08:34 AM
If this is for a school project study the manual, and using MAX (Measurement and Automation Explorer), which is usually installed when LabVIEW is installed, formulate the SCPI commands and send them to the instrument to gain experience on how both work (SCPI and Instrument). If it is a work project, download the driver and look down into it to see how the commands (most likely SCPI) are constructed. LabVIEW drivers, for the most part, are LabVIEW sub-vi's that someone has taken the time to make, that build command strings appropriate for the specific instrument. They usually are open (not password protected) and are high level (LabVIEW not a dll)
08-01-2013 08:43 AM
Nope it is for work (it is my first job) . My company asked me to practice on this... you can't immagine how it is boring on one side and make me enthusiastic on the other side when I succeed.
By the way I have found the command I was looking for:
TDIV <value>; to set the x-axis
VDIV <value>; to set the y-axis
I have tested them and they work properly.
Now the next step is to do a peak-to-peak analisys... for what I read I don't think that a command that does everything automatically exist (I'm quite sure that It doesn't exist...why make the things easy!? 😛 )... so here there is my idea... try to find a command that triggers the waveform (it exist I saw it), acquire the waveform in an array (I saw a Save command somewhere) and do a mathematical analysis on the signal. what do you think?
could it work?