Instrument Control (GPIB, Serial, VISA, IVI)

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

SCIP COMMAND DOES NOT WORK ON N9320B

Need to know what the syntax is to recall a state from local file on N9320B.

Using the following syntax command, i__ret = agn9320ni_WriteInstrData (spectrum_analyzer, "MMEM:LOAD:STAT 1,STATE003.STA");

 

Get the following "Error -148 Character data not allowed."

 

 

0 Compliments
Message 1 sur 11
5 678 Visites

did you issue "CONF:SAN" first?


"Should be" isn't "Is" -Jay
0 Compliments
Message 2 sur 11
5 677 Visites

Reran the command with the following changes.

 

i__ret = agn9320ni_WriteInstrData (spectrum_analyzer, ":CONF:SAN");


i__ret = agn9320ni_WriteInstrData (spectrum_analyzer, ":MMEM:LOAD:STAT 1,STATE003.STA");

 

The Spectrum Analyzer shows the following error during "MMEM" command:  "ERROR -148 Character data not allowed"

0 Compliments
Message 3 sur 11
5 650 Visites
Your question is best answered by the manual or by Agilent. What have you tried?
0 Compliments
Message 4 sur 11
5 642 Visites

@chinook1 wrote:

Reran the command with the following changes.

 

i__ret = agn9320ni_WriteInstrData (spectrum_analyzer, ":CONF:SAN");


i__ret = agn9320ni_WriteInstrData (spectrum_analyzer, ":MMEM:LOAD:STAT 1,STATE003.STA");

 

The Spectrum Analyzer shows the following error during "MMEM" command:  "ERROR -148 Character data not allowed"


As Dennis said this is probably a case where you need to RTFM (Read the fine manual.)  Since I have, and we know that the device is configured in spec anny mode, there is only one reason that a *.sta file would fail with -148.

 

You device's firmware is older than the feature set contained in the *.sta file (The FW of the unit that generated the file saved features that were unsupported in the FW version of the unit you are trying to load it on)   Check for FW upgrade.  The manual will tell you how to get the currently loaded FW revision and upgrade processes.


"Should be" isn't "Is" -Jay
0 Compliments
Message 5 sur 11
5 638 Visites

Upgrade the firmware per Agilents web site. Currently at Revision: 0B:03:51.

 

That did not resolve my issue. Stil getting the same error using the same commands.

 

 

0 Compliments
Message 6 sur 11
5 631 Visites

Try a new *.STA file (possibly State003.sta is corrupt)


"Should be" isn't "Is" -Jay
0 Compliments
Message 7 sur 11
5 629 Visites

Saved another setting on analyzer named STATE006.STA. Tried the same command and received the same error message.

 

0 Compliments
Message 8 sur 11
5 626 Visites

Went the long route work around.

 

Created individual scpi command lines that simulated the saved Network Analyzer setting and that worked fine.

 

 

0 Compliments
Message 9 sur 11
5 621 Visites

Just received an email from Agilent. See information below.

 

Hi Ron – I heard back from the Division on this one:

 

Please add the double quote for the file name as below and then it will be fine.

:MMEM:LOAD:STAT 1,"STATE001.STA"

 

It was incorrectly documented in the programming manual and is being updated.  My apologies for the inconvenience caused by this.

 

Not sure if the NI driver for the N9320B needs to be updated?

0 Compliments
Message 10 sur 11
5 607 Visites