Hi all,
I was wondering if there is a way in iX developer to determine if the project is in the simulator mode.
Use case: Automatically change the com port number to another defined COM port if the simulator is launched. The com port numbers differ between PC and Beijer terminal.
P.S. I currently use a define to select the simulator mode but that is still a manual process to change between simulator and real terminal.
Cheers and thanks in advance,
Pepijn Hogervorst
Simulator mode detection using scripting
Re: Simulator mode detection using scripting
Hi
Below a code I am using successfully (X2 Pro terminal, not PC)
Below a code I am using successfully (X2 Pro terminal, not PC)
Code: Select all
if(System.Environment.OSVersion.Platform == PlatformID.WinCE)
sXmlFiles = @"\Hard Disk\Parameters\";
else
sXmlFiles = @"C:\Parameters\";
Re: Simulator mode detection using scripting
Thanks that is exactly what I need!