Path Independent RC Programs    Related Topics

The default directory for R&S ZVB user data is C:\Rohde&Schwarz\Nwa. Other instruments may use different default directories. To make remote control programs compatible, it is recommended to define all paths relative to the default directory, to be set via MMEMory:CDIRectory DEFault.  

// Select default directory, change to sub-directory (relative to default directory)

MMEMory:CDIRectory  DEFault

MMEMory:CDIRectory 'Traces'

 

MMEMory:STORe:TRACe 'Trc1', 'S21.s1p'

MMEMory:LOAD:TRACe 'Trc1', 'S21.s1p'

 

// Alternative, more compact definition

MMEMory:CDIRectory DEFault

MMEMory:STORe:TRACe 'Trc1', 'Traces\S21.s1p'

 

You may also read the default path (MMEMory:CDIRectory?) and use the external RC program to build the complete paths.