Is it possible to start a virtual controller from command line?
I have a machine that is constatnly running a virtual controller for various test purposes. I would like it to start the virtual machine automatically after a restart.
So, is it possible to start a virtual machine from commandline or by other means possible to schedule at startup of windows?
Best regards
Markus
So, is it possible to start a virtual machine from commandline or by other means possible to schedule at startup of windows?
Best regards
Markus
//Markus Näslund
0
Best Answers
-
Markus Näslund said:I have a machine that is constatnly running a virtual controller for various test purposes. I would like it to start the virtual machine automatically after a restart.
So, is it possible to start a virtual machine from commandline or by other means possible to schedule at startup of windows?
Best regards
Markus
using ABB.Robotics.RobotStudio.Stations;
RsIrc5Controller irc5= new RsIrc5Controller(directoryOfTheController);
await irc5Controller.StartAsync(VirtualControllerRestartMode.WarmStart, mechanisms, false);
1 -
Hello Markus,
Try this:
1. Add the dependencies RobotStudio.Services.RobApi and RobotStudio.Services.RobApi.Desktop
2. RobVcFactory.StartVC("PathToVC",VCStartType.WarmStart,VcStartOptions.Default);—Maxim RiabichevPC Software Support Engineer5
Answers
-
scottdf93 said:Markus Näslund said:I have a machine that is constatnly running a virtual controller for various test purposes. I would like it to start the virtual machine automatically after a restart.
So, is it possible to start a virtual machine from commandline or by other means possible to schedule at startup of windows?
Best regards
Markus
using ABB.Robotics.RobotStudio.Stations;
RsIrc5Controller irc5= new RsIrc5Controller(directoryOfTheController);
await irc5Controller.StartAsync(VirtualControllerRestartMode.WarmStart, mechanisms, false);
If anybody knows a way to start a virtual controller with the RobotStudio SDK and a console application any help would be greatly appreciated.//Markus Näslund0 -
Maxim Riabichev said:Hello Markus,
Try this:
1. Add the dependencies RobotStudio.Services.RobApi and RobotStudio.Services.RobApi.Desktop
2. RobVcFactory.StartVC("PathToVC",VCStartType.WarmStart,VcStartOptions.Default);
This was the solution I managed to find:RobotStudioAPI.Initialize();
ApiServices.Simulator = new RobotStudio.Services.Simulation.SimulatorService();
ApiServices.Controller = new RobotStudio.Services.Controller.ControllerService();
RsIrc5Controller c = new RsIrc5Controller("PathToVC");
Task tc = c.StartAsync(VirtualControllerRestartMode.WarmStart, null, false);
Thanks again, I will replace my solution with yours since it feels cleaner.
Br
Markus
//Markus Näslund0 -
Markus Näslund said:I have a machine that is constatnly running a virtual controller for various test purposes. I would like it to start the virtual machine automatically after a restart.
So, is it possible to start a virtual machine from commandline or by other means possible to schedule at startup of windows?
Best regards
MarkusLee Justice0 -
lemster68 said:Markus Näslund said:I have a machine that is constatnly running a virtual controller for various test purposes. I would like it to start the virtual machine automatically after a restart.
So, is it possible to start a virtual machine from commandline or by other means possible to schedule at startup of windows?
Best regards
Markus//Markus Näslund0 -
Markus Näslund said:scottdf93 said:Markus Näslund said:I have a machine that is constatnly running a virtual controller for various test purposes. I would like it to start the virtual machine automatically after a restart.
So, is it possible to start a virtual machine from commandline or by other means possible to schedule at startup of windows?
Best regards
Markus
using ABB.Robotics.RobotStudio.Stations;
RsIrc5Controller irc5= new RsIrc5Controller(directoryOfTheController);
await irc5Controller.StartAsync(VirtualControllerRestartMode.WarmStart, mechanisms, false);
If anybody knows a way to start a virtual controller with the RobotStudio SDK and a console application any help would be greatly appreciated.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings