Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

n9020a VXA using gpibWrite() / gpibQuerry()

I try to read back an EVM result from N9020A, but having problem to use gpibWrite() or gpibQuerry() function with VC++. The SCPI command I trying to send is < :CALC:W11A:DATA4:TABL? "EVM\" >. I suspect the error is coming from the " " appeal within the SCPI command itself.
 
Can anyone help here?
 
I adding test feature with N9020A into existing program code.
  
0 Kudos
Message 1 of 8
(5,047 Views)
Hello,
I looked at the programmer reference manual for your device here, I could not find the EVM command.
At this point I do not believe that your 9020A supports that particular device.

There should be a command in the programmers reference that will perform the task you require.
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 2 of 8
(5,034 Views)

Thanks, christian.

This command is from 89601-90001, new release f/w of N9020A.

I had try some which I search from web on VC++ tip,  eg like \", or \x43, try to force VC compiler that this " is a special string I want to send, but still can't get it work.

could it be the gpibWrite() / gpibQuerry() cannot recognize those special string?

Do you have any workarround trick for for, "EVM\" ?

Thanks in advance.

 

0 Kudos
Message 3 of 8
(5,009 Views)
Hello I am assuming that you are using the quotation marks "" in the command string you are sending?
Have you tried send the command without the quotation marks i.e just EVM\  

Let us know if this helps.
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 4 of 8
(4,977 Views)

hi Christian,

I had try it w/o "", MXA will have error.

The SCPI command send down must inlcude "EVM\".

I try using NI MAX with the VISA Interactive control, basic I/O write, I type in <:CALC:W11A ATA4:TABL? "EVM\">, there is no problem or sending, instrument don't show error of receiving, and I can read back the result by using basic I/O read.

Thanks.

 

 

0 Kudos
Message 5 of 8
(4,964 Views)
Did you try "\"EVM\""
0 Kudos
Message 6 of 8
(4,952 Views)

i use the following scpi commands on the N9020A Spectrum Analyzer to read my EVM qpsk values:

 

inst wcdma

freq:cent 300 MHz

 

conf:evmq

fetc:evmq?

 

and it outputs all the evm qpsk values

0 Kudos
Message 7 of 8
(4,348 Views)
Did you allready run NI Spy ?  If the command string gets mangled you should see it there how it is mangled .  Probably you have to quote not only the quotes but also the backslash.  Something like this : \"EVM\\\"
0 Kudos
Message 8 of 8
(4,327 Views)