I'm working on VSA from remote, using SCPI commands over LAN. The connection is being made through matlab, using the 'tcpip' function.
Recently, the company installed new version of VSA on the server (new version is 15, the old one is 13). So currently both versions are installed on the server.
Now, when I'm trying to establish the LAN remote connection (in the same way I always did), I keep getting connected to the 15 version (and I want to connect to 13 version).
I tried changing the SCPI port, but it doesn't help... In addition, I see that the versions have different tcp/ip port.
How do I configure, to which version/port the matlab will connect?
<newInstance> ::= 0 | 1
<version> ::= String
<hostname> ::= String
<port> ::= Integer number
<waitSecs> ::= Integer number
<createOptions> ::= Integer number
<commandLineArgs> ::= String
Returns ::= 0 | 1
newInstance: Boolean with value of 1 or 0. Default is 1.
version: Version of the 89600 VSA Software to start. Default is empty string which indicates
to pick the latest available version.
hostname: String of the hostname (currently localhost or an empty string are the only valid values).
Default is empty string which indicates to use localhost.
waitSecs: How many seconds to wait before timing out. Use a value less than or equal to 0 to wait indefinitely.
Default is 0 (wait indefinitely).
port: Integer port number of the 89600 VSA Software to use. Default is -1 and indicates to use the default
port number which is 60189.
createOptions: Integer bit field of the startup options (see the equivalent .NET API documentation for more detail)
0 = None
1 = Use 32-bit application
2 = Use 64-bit application
Default value is 0 which uses whatever the startup preferences are in the 89600 VSA Software.
commandLineArgs: String of command line arguments. Default is empty string. See the equivalent .NET API documentation for more detail.
The optional arguments support was added in version 15.0.
Thanks David, but seems like it doesn't help...
I used to create a VSA object in MATLAB, simply using the tcpip function. The only parameters I'm entering, are the IP and the port. I tried changing the port in the 13.0 version, but it changes in both of them...
Whenever I use fopen now, the IDN? result always shows connection to the 15.0 version (and I want to connect 13.0).
Does anyone knows how to choose the vesion I want to connect to?
*IDN? returns the version of the SCPI Translator Module, not the version of VSA.
The following code starts VSA 13.0 as expected.
t.timeout = 120; %Give VSA up to 120 seconds to start (typical startup times are much shorter than 2 minutes)
fprintf(t, ':SYSTem:VSA:STARt 1,"13.0"');
t.timeout = 10; %Reset the timeout to 10 seconds
isCreated = true;
idn = query(t, '*IDN?');
% Ensure the application window is visible
fprintf(t, ':DISPlay:ENABle 1');