07-15-2014 02:23 AM
Hi i try to make a program so i can read and set frequceny and power at different instruments by using standard SCPI commands. To set the frequecy i use SENS:FREQ:CENT but how do i set the power? I also want to be able to read and display the frequceny and power when i dont know what it is set to, what commands do i use for that? Can't find it anywhere..
07-15-2014 02:38 AM
07-15-2014 02:41 AM
I have multiple different instruments on a subnet that i want to set/read from and that sholuld not be a problem since i use the standard SCPI commands?
07-15-2014 02:45 AM
07-15-2014 06:26 AM
I will second what Dennis is saying here. SCPI is a standard, but each manufacturer will be slightly different. This is especially true with the "optional" characters. I had a driver that worked perfectly for an Agilent power supply. I bought an TDK power supply that we swear was exactly the same as the Agilent, just had the TDK name on it (rumor was that TDK built the Agilent power supply). My driver didn't work on the TDK. Turned out that TDK decided to make all of the optional characters in the SCPI standard required.
So even though it is a standard, each instrument and vendor will have it nuances that you need to get around. Either using the IVI drivers or making an OOP solution is your best bet based on the description you have given. Finding the IVI drivers will be less work than creating a driver that works for all of your equipment.
07-15-2014 09:34 AM - edited 07-15-2014 09:36 AM
Hi qweewq11,
Each instrument has its own SCPI command, try to get SCPI manual from all your instruments and get all commands you need to.
Tip :
1) Be careful to Open and Close all your instrument 🙂
2) You might use IVI or VISA. (check on NI website, some drivers are already developped)
BR,
Vincent
07-16-2014 05:08 AM
I use VISA. I know that some commands are for specific instruments but there are some standard commands that work for most intruments. I found out how to set power and frequency but how do i read it?
07-16-2014 05:13 AM - edited 07-16-2014 05:15 AM
According to your datasheet SCPI instrument you should find what's answer look like. Use a VISA read after your VISA Write (with enough bytes to read) to get your informations.
Care about the kind of data your instrument get back to you. It might be numeric, array, string, boolean... Just read the datasheet. And then use common LabVIEW tools to get back your informations to front panel.
BR,
Vincent
07-16-2014 06:31 AM