10-09-2013 03:42 PM
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."
10-09-2013 04:11 PM
did you issue "CONF:SAN" first?
10-10-2013 08:03 AM
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"
10-10-2013 09:29 AM
10-10-2013 09:49 AM - 編集済み 10-10-2013 09:50 AM
@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.
10-10-2013 10:30 AM
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.
10-10-2013 11:04 AM
Try a new *.STA file (possibly State003.sta is corrupt)
10-10-2013 11:15 AM
Saved another setting on analyzer named STATE006.STA. Tried the same command and received the same error message.
10-10-2013 01:16 PM
Went the long route work around.
Created individual scpi command lines that simulated the saved Network Analyzer setting and that worked fine.
10-11-2013 11:29 AM
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?