10-31-2019 05:35 AM
Hi Im a student from taiwan.Recently i had a school projact to control vna.
I use lan to connect r&s znb.I check a lot of scpi command for loading and saving data,but i didn't find any about lan option for saving data ,just some command like
:MMEMory:STORe:TRACe 'C:\Users\Public\Documents\RohdeSchwarz\Vna\Traces\Chn1.s2p'Then I manulay control my vna but in saving dialong surface i can' find about lan option.
Can some one tell me about store data and load data with lan scpi command?
Orz i truly appericate.
Solved! Go to Solution.
11-01-2019 11:09 AM
That ":MMEM:STORe" command is usually for saving data locally on the VNA. You want to look at the "MMEM:TRANsfer" commands and examples. It doesn't matter if its a LAN, USB or GPIB physical connection, the SCPI commands work the same regardless.
If you are using LabVIEW, check to see if R&S has a driver, I'd bet there's an example in there you could use.
Craig
11-01-2019 08:28 PM
Tank you very much.This is very helpful for my project.
And last time you help me solve the problem #keithley 2611b-l source meter
the project i have done really appreciate.
I puy my project photo
11-02-2019 04:35 PM
Glad I could help. GOod luck with the rest of the project.
Craig
11-10-2019 03:01 AM
HI Craig i got some problem,i send command from the example you told me
:MMEM:TRANS? 'ttest.s1p' but i got this response (i upload the photo )
i think vna can't read some kind of :MMEM:TRANS or i miss someing i gues
please give me some advise thank you very much ! Orz
11-10-2019 08:50 PM
Check your code, it looks like you forgot the ':' at the start. I say this because the error message states :outp:mmem:... which isn't a valid command and thus the header unsupported error.
R&S manual is online here..
https://www.rohde-schwarz.com/webhelp/ZNB_ZNBT_HTML_UserManual_en/ZNB_ZNBT_HTML_UserManual_en.htm
From the manual this looks to be the preferred method..
https://www.rohde-schwarz.com/webhelp/ZNB_ZNBT_HTML_UserManual_en/Content/668d9dcebd3c454e.htm
*RST :SYSTEM:DISPLAY:UPDATE ON
:SENSe1:CORRection:COLLect:METHod:DEFine 'Test', TOSM, 1, 2, 3, 4 :SENSe1:CORRection:COLLect:SAVE:SELected:DEFault
:INITiate1:CONTinuous OFF; :INITiate:IMMediate;*WAI :MMEMory:STORe:TRACe:PORTs 1, 'ParserTouchstonePorts.s1p', COMPlex, 2 :MMEMory:STORe:TRACe:PORTs 1, 'ParserTouchstonePorts.s2p', COMPlex, 3, 2 :MMEMory:STORe:TRACe:PORTs 1, 'ParserTouchstonePorts.s4p', COMPlex, 1, 4, 3, 2
11-11-2019 10:53 AM
Full link to user manual - https://www.rohde-schwarz.com/webhelp/ZNB_ZNBT_HTML_UserManual_en/ZNB_ZNBT_HTML_UserManual_en.htm
11-12-2019 02:51 AM
Hi Craig, thak you for replying me . But i still have problem, i put on the photo about mmem scpi command,there is not :mmem:tran? or sort of thing.And i found that about block data , it say Header:Header # 45168XXXXXXXX.
i read the explain but i don't know how to ask my znb header.
11-24-2019 01:40 AM
sorry I'm very annoying Craig. I figure it out
I send the command "Form:DATA REAL" for change the way instrument transfering data to binary
and then I make a measurement and read the data "CALC:DATA:TRAC? 'Trc2',SDATA"
after that i got python erro waring can't decode by "utf-8".
then i do some serching,and i use the read_binary_valus function and i got the right data.
For people not using pythonvisa or you use read_raw function, when you read data you wii got some like this
b"#18\x84\xb3'4\xf0\x84c8" you need to parse it the "1"behind the "#"indicates how many of