03-27-2019 10:06 AM
Hello ,
I am looking for a solution to agilent E5062A program to load a .sta file
I already use the command: MMEM: LOAD an error occurs invalid separator please help
03-27-2019 03:56 PM
It looks like your SCPI command isn't properly formatted...but you didn't post the code so can't be absolutely sure.
On instruments I use the SCPI command to load a saved config file is something like...
MMEM:LOAD 'filename';
Note, there's no space between ":" and LOAD. But I've had issues on some instruments with the filename string. Make sure you use the ' quotes. Consult the manual for more details on file paths.
Craig
04-02-2019 06:13 AM - edited 04-02-2019 06:15 AM
I use the following python code but an error :error separator
import Gpib
inst=Gpib.Gpib(0,16)
inst.write(":MMEM:LOAD ""USER(D)/state.sta""")
04-02-2019 12:14 PM
Stil no luck? Try..
inst.write(":MMEM:LOAD 'USER(D)/state.sta';") - Note changed parentheses and the ; at the end. Probably a termination char also (\r or \n or \r\n) but I don't know how those are handled in python these days.
Some older Agilent instruments didn't support spaces in filename and there may be a maximum filename length that's shorter than the Windows standards. So try names that fit the old DOS 8.3 format (abcdefgh.dat).
Craig
04-02-2019 01:53 PM
@cstorey wrote:
Some older Agilent instruments didn't support spaces in filename and there may be a maximum filename length that's shorter than the Windows standards. So try names that fit the old DOS 8.3 format (abcdefgh.dat).
Remember that if multiple files begin with the same 8 characters in the DOS 8.3 format, then you will need to see which order they are alphanumerically and add a ~ followed by a single digit to the first 6 characters. (abcdef~2.dat) for the second file in alphanumeric order.