How to call?
The DPlotXYServer could be called almost from any programming language using syntax devoted for calling console applications.
DPlotXYServe Call from the command line:
<Full path to DPlotXYServer\>DPlotXYServer.exe < Full path to ScriptFile\>NamedScriptFile.dps E:\AAA_Glass\DPlotXYServer\DPlotXYServer.exe 92-SolarFill_75.dps
DPlotXYServe from a batch file:
echo Creation of two Successive graphs from batch file
DPlotXYServer.exe 92-SolarFill_75.dps
DPlotXYServe.exe 92JR-SolarFill_75.dps
<Full path to DPlotXYServer\>DPlotXYServer.exe < Full path to ScriptFile\>NamedScriptFile.dps
DPlotXYServe call from Basic
PRINT "Three successive calls to DPlotXYServer"
SHELL "DPlotXYServer.exe 92-SolarFill_75.dps"
SHELL "DPlotXYServer.exe 92JR-SolarFill_75.dps"
SHELL "E:\AAA\Glass\DPlotXYServer\DPlotXYServer.exe E:\AAA\Glass\DPlotXYServer\92-SolarFill_75.dps"
PRINT "You should get three plots"
DPlotXYServe call from Fortran
Fixed coding form: columns from 7 to 72
PROGRAM MAIN
WRITE (*,*) 'Call to DPlotXYServer from FORTRAN'
WRITE (*,*) ' ... to continue press < CR > key ...'
pause
call system("DPlotXYServer.exe E:\AAA_Glass\Ecology\DPlotXYServer\92-Sol
&arFill_75.dps")
write (*,*) ' Program finished '
WRITE (*,*) ' ... to quit press < CR > key ....'
pause
end
DPlotXYServe call from C:
int main(int argc, char *argv[])
{
printf("%s\n","Three successive calls to DPlotXYServer");
printf("\n");
system("DPlotXYServer.exe 92-SolarFill_75.dps");
system("DPlotXYServer.exe 92JR-SolarFill_75.dps");
system("E:\\AAA_Glas\\ DPlotXYServer\\DPlotXYServer.exe E:\\AAA_Glas\\ DPlotXYServer\\92-SolarFill_75.dps");
printf("%s\n","You should get three plots");
Pause()2000;
return 0; // End of main program
}
Assumed syntax for DPlotXYServe call from Python:
import os
cmd = "<Full path to DPlotXYServer\>DPlotXYServer.exe < Full path to ScriptFile\>NamedScriptFile.dps "
returned_value = os.system(cmd) #
Assumed syntax for DPlotXYServe call from R:
shell('<Full path to DPlotXYServer\>DPlotXYServer.exe < Full path to ScriptFile\>NamedScriptFile.dps’)
OR
REMARK: in windows/DOS path string \ should be doubled i.e. replaced by \\
system('<Full path to DPlotXYServe\\/>DPlotXYServer.exe < Full path to ScriptFile\\>NamedScriptFile.dps‘, wait=FALSE)