LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI Commands

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 Smiley Sad
Thank you for your help

0 Kudos
Message 1 of 27
(5,920 Views)

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!

Best regards,
GerdW


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

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 27
(5,896 Views)

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.

 

 

0 Kudos
Message 4 of 27
(5,890 Views)

@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..!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 5 of 27
(5,885 Views)

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

 

 

 

 

 

Message 6 of 27
(5,884 Views)

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 🙂

0 Kudos
Message 7 of 27
(5,879 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 27
(5,867 Views)

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)

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 9 of 27
(5,855 Views)

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?

0 Kudos
Message 10 of 27
(5,849 Views)