01-30-2019 08:51 AM
Hello,
I am using a scope DSOX3034T with a labview program (version labview 2017) and it is working perfectly.
But if for any reason, the set up of the scope is manually modified (for example the input impedance has to be set at 1 MOhms not at 50 Ohms, only the channel 1 is displayed in DC mode,...), my program won't work anymore.
Maybe there are other parameters in the set-up that has to be set in a specific way and as I probably don't know all of them, I would like to save the scope set-up.
Do you know if there is a way to save with labview the actual set-up of a scope in a file. Then use this file to recall the same set-up at each starting of my program.
If this is not possible, then I will have to perform a reset function and learn how to change the parameters of the set up. But I would prefer save the actual set-up.
Thanks for your help,
Fabien
01-30-2019 09:38 AM
A quick google search shows the scope has a USB port, which implies things can be stored... things like waveform data, and config setups.
I suggest you break out the manual and look for for the command to store the scope set up. There should be internal storage as well as the USB options. Probably even PC to scope transfer so you could save the scope-config in your source control along side your code.
FYI. The scope probably has front panel lock-out as well which would prevent people from poking buttons and ruining your captures. It also probably has front panel button detection, so you could at least check if someone has pressed a button.
One more thing, Your comment "as I probably don't know all of them" is a bit concerning... if you do not reset the scope at the beginning of your test, how do you know you are in the correct state to preform your tests?
Typically, when dealing with instruments, you do your tests manually before trying to automate them. Ie reset the scope, then make changes to the time base, voltage scales, triggers... until you can preform the test as you want. Of course you make notes along the way of what setting you had to change. Then you break out the programmer manual and look for the appropriate commands to accomplish the same thing as your button presses.
Hope that helps and good luck!
01-30-2019 09:44 AM
Well there are a couple things you can do here.
First you can always reset all of the scope settings every time you start a test using the vi's supplied.
While I don't have your exact scope, I have used Lecroy oscilloscope with LabVIEW. The Lecroy scopes allow you to save setups on the scope itself and has a save and a load scope setup vi
So what I do is create a setup and store it on the scope then I load that setup everytime I start a test.
01-30-2019 10:08 AM
Hello Frozen,
I have read the Keysight InfiniiVision 3000 X-Series Oscilloscopes user guide.
I plugged the USB port in the scope and opened NI MAX software and I sent the command "SAVE:SETUP[:START]
and press the query button but I get an error. (The "IDN? function however is working)
If I don't find the instruction with NI MAX, it may be harder to find the correct instruction in labview.
Concerning your question "how do you know you are in the correct state to preform your tests?" I know because I spent some time searching manually the correct set-up, nobody has touched after the scope and because my test is still running good.
But I want to avoid an error in case someone modify the set-up.
I have to search for a solution.
Tthanks for your help,
Fabien
01-30-2019 10:10 AM
Yes it is a solution but I'd rather find a way to store the set up in a file so that labview can load it and configure the scope correctly.
Thanks,
Fabien
01-30-2019 12:14 PM - edited 01-30-2019 12:16 PM
OK.. I did the work for you.
On Page 1230 (YIKES) of the programer's manual, you will find the system setup query command.
:SYSTem:SETup?
And I quote...
"The :\SYSTem:\SETup\? query ... outputs the current oscilloscope setup in the form of a learn string to the controller. The setup (learn) string is sent and received as a binary block of data."
The rest I leave up to you.
Good luck
01-30-2019 02:08 PM
@fabien-g wrote:
I plugged the USB port in the scope and opened NI MAX software and I sent the command "SAVE:SETUP[:START]
and press the query button but I get an error. (The "IDN? function however is working)
FYI For SCPI commands, brackets denote an optional part of the command and are not meant to be entered literally, so you can use SAVE:SETUP:START or just SAVE:SETUP. Note: Commands shown with uppercase and lowercase letters means the uppercase part is required and the lowercase part is not. e.g. [:SENSe]:DETector could be written as just :DET
01-31-2019 02:10 AM
Hello,
Yes in fact the save:setup query was not working because of the punctuation at the beginning :
It is not * but : that have to be used.
It is not the case for the IDN query. By default, it is * at the begining of the query for IDN, I guessed it was to be * at the beginning for the other queries.
I discover NI software at the same time I am resolving my problem.
Note that the query SYSTEM:SETUP is working as well. I get the code of the set-up.
Thanks,
Fabien