LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI Commands

Hi inuyasha,

 

either you do it the way you suggest on your own (you will learn more SCPI commands of your device as well as more LabVIEW for the signal analysis) OR you check the capabilities of your scope. Most scopes offer some "basic" analysis like Pk-Pk measurement and most probably such results are also offered when asked for with the right SCPI command...

 

Btw. when all this is for YOUR job why should you get paid when we do the work?

Best regards,
GerdW


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

@inuyasha84 wrote:

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.[..]


Well, i want to recommend you to listen to all the others who already told you to use the downloadable instrument driver.

 

Using pre-existing code is not a sign of weakness nor incompetency.

Some would rather tell you that re-writing everything is a sign of weakness or even dumbness.

As always, the truth is somewhere inbetween.

 

My personal opinion:

Not searching for existing (implemented) algorithms is stupid. Using existing algorithm without reviewing (and understanding) them is plainly dumb.

 

Transferring this to your task:

1. Rewriting the instrument driver VIs in order to learn LV and SCPI and maybe device specific commands can benefit yourself, but does not benefit your employer

2. Using the downloadable instrument driver without reviewing and understanding it does not benefit your employer and yourself alike.

3. Downloading, reviewing and understanding the instrument driver and then using it benefits your employer and yourself.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 12 of 27
(1,764 Views)

Gerd here I'm asking for help and to learn both labview/scpi . If you see, I ask for idea/solutions and ofc I write the one that I find for "descendants". I think that this is the purpouse of the forum or not? 

 

0 Kudos
Message 13 of 27
(1,762 Views)

yep ofc I'm focused on the step 3 as you and also others suggested. The idea of the employer  is to  give me the chance to improve my scpi skills 🙂

0 Kudos
Message 14 of 27
(1,760 Views)

Hi inuyasha,

 


Gerd here I'm asking for help and to learn both labview/scpi


 

Well, in this thread you're just asking for specific SCPI commands of your scope. I think it's your job to read the manual of your hardware.

 

- When you ask (more specific) LabVIEW questions you will get a lot of help here in the forum.

- When you ask for even more SCPI of your scope you should ask them in a "LeCroy user forum" - if there exists any. Otherwise ask the LeCroy support...

- You have been recommend to use available drivers, but you still refuse to. How much more help do you need when offered a ready-to-use driver?

 

"Learning SCPI" is kind of silly. Yes, there's a common base of commands for all device. But I guess >80% of SCPI commands are device-specific, all they have in common is just the syntax used. So you should better say "learn SCPI cmds of my LeCroy scope"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 27
(1,758 Views)

Ofc I have read the guide already but as you can imagine is difficult to find a command in over 300 pages....(ah and i forgot to say that the instruments are 2... and the other one has more or less 600 pages of codes) so what I thought was maybe someone already know them and finally I can start to use them.
I know that is silly use the scpi but I have to...

0 Kudos
Message 16 of 27
(1,759 Views)

@inuyasha84 wrote:

[...]I know that is silly use the scpi but I have to...


What the hell.....

It is NOT stupid to use SCPI. SCPI was defined to makes things more simple for users of boxed instrument who wanted to automize them using a PC.....

I think you refer with that sentence to:

"Instead of using pre-existing wrappers for the SCPI commands used by a specific instrument trying to re-write everything is stupid."

 

Well, yes, that kind of is 🙂

 

And again, i don't see advantage in trying to re-write as a proper code analysis should teach you quite the same, but takes MUCH less time.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 17 of 27
(1,756 Views)

yep norbert you understood well 🙂

 

i know how much it is important also because i know, once i'll be sure in the usage, what application i have to develope.

0 Kudos
Message 18 of 27
(1,752 Views)

@Norbert_B wrote:

@inuyasha84 wrote:

[...]I know that is silly use the scpi but I have to...


What the hell.....

It is NOT stupid to use SCPI. SCPI was defined to makes things more simple for users of boxed instrument who wanted to automize them using a PC.....

I think you refer with that sentence to:

"Instead of using pre-existing wrappers for the SCPI commands used by a specific instrument trying to re-write everything is stupid."

 

Well, yes, that kind of is 🙂

 

And again, i don't see advantage in trying to re-write as a proper code analysis should teach you quite the same, but takes MUCH less time.

 

Norbert


I disagree a little bit.  Unless, of course, you consider hands-on as part of proper code analysis.  Hands-on can teach you about different quirks assoiciated with the various interfaces, for example.  Besides, there's nothing more gratifying than seeing your string of commands work (and nothing more humiliating than seeing it go up in flames).  😉

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 19 of 27
(1,745 Views)

I hope this could help someone. I have found the Command for the Peak-to-Peak. In reality it does a lot of mathematical analysis.
The command is PAVA? PKPK; if u need other mathematical analysis you can see the 64Xi manual at page 198.

 

Now  that  I found this solution starting from tomorrow i'll try to see if it is possible to realize my first idea: acquire a vector and do an analysis on it.

0 Kudos
Message 20 of 27
(1,740 Views)