How to Start Simulator with a Particular Program, when I start the pc.(Download only once)
Voted best answer
After 2 days of work finally I found the solution.
-The first issue was if “it is plausible or not?”
To answer this, I had to check if the program on the simulator was downloaded to the RAM of the PC (In which case the solution was impossible) or to a file on the hard drive.
After some research I get to the conclusion that the emulator requires two files (Both of them located at ….\ABB Industrial IT\Freelance\exe):
-bootconfig1.cfg
-Pram1File.bin
And they are created when a new controller is declared (Web Browser) and change with a “Whole Station” (Pram1File.bin increase, so I guess this is the program. And bootconfig1.cfg is the configuration of the emulated controller, you can open it with notepad).
-Now the second issue is if ”it is possible to use these 2 files when I restart the PC and the emulator?”
The problem is that every time that you restart the PC, at least one of these two files is reset to the original value.
After this, the solution seems obvious, copy these files after “whole station” and then copy them back when the PC restarts, and stop and restart the Emulator service. (Freelance Controller Emulator Service)
My final guess: I think the problem occurs when the service is stop , so if you set it to manual It is always running and is interrupted by the operating system, so the next time you start the emulator will do it with the last program.
The Solution:
On Start\Run\services.msc Doble click on Freelance Controller Emulator Service, General\Stat Type\ Select Manual .
Make Whole Station to the Emulator
For BackUp Copy the files ….\ABB Industrial IT\Freelance\exe\ bootconfig1.cfg and ….\ABB Industrial IT\Freelance\exe\ Pram1File.bin.
Every time the PC start:
-Start Digivis.
-Manual Start the service. On Run line type: “NET START "Freelance Controller Emulator Service"
Answers
If I have understood your question correctly, you want to run freelance application/program on emulator.
1.Start emulator on local host address http://127.0.0.1:8888/ you will get following settings shown below
2.Enter station ID same as resource id you have configured in CBF network settings in HW structure for emulator (and vice versa configure same IP address of local host in network configuration in CBF).
3. Hit Start controller button from emulator page, Now configure your program under emulator resource in project tree in CBF, pass plausibility check, go online, emulator resource must be in version error, make whole station download and you have done.
The Emulator will run as a service. This means it will automatically start anytime when you boot your PC. Hope it helps you…
Add new comment