Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Interoperability

evalremote

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

An interoperability command that will send a script commnad(s) to the server product and executes it there

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

evalremote(s,"y=x^2;");

Sends command y=x^2; to the server via an open session s and executes it

 

Example

The following code example opens Device as a server, sends local variable 'x' to Device workspace followed by a command to manipulate the variable and the retrieves the result before closing the session:

 

#Opend Device session

s2=opensession('device');

 

#Declare local variable x

x=2;

 

#Send the local variable to Device workspace via API

putremotedata(s2,'x_device',x);

 

#Send script command to Device via API andsquare the variable

evalremote(s2,"y_device=x_device^2;");

 

#Get the variable from Device worksapace via API 

?y=getremotedata(s2,'y_device');

 

#Close the session

closesession(s2);

 

See Also

opensession, closesession, putremotedata, getremotedata

Copyright Lumerical Inc. | Privacy | Site Map