Passing parameters to HxRun.exe

Well, as far as I know, custom arguments cannot be used as input for methods, only for submethods. Thats what the Vector Unittest Framework covers.

Unfortunately, I do not have the installer which is needed. Maybe @EricSindelar_Hamilton or @WilliamCham_Hamilton can help out?

I do not have a library or method called Vector Unit Test Framework. I will reach out to my colleagues to try and find out more.

1 Like

What is the relationship between Venus and Venus Scheduler? Is the Scheduler a separate application, a component of venus, etc.?

VENUS Scheduler, like TADM, is a component of VENUS. My understanding is that the installers actually just unlock those functions within VENUS. So, they aren’t separate applications. With VENUS five, these installers are included along with the base software.

1 Like

Is there a way to launch HxRun in simulation mode using flags like -r and -t ? The docs don’t mention this so I doubt it is currently supported.

“C:\Program Files (x86)\HAMILTON\Bin\HxRun.exe” “C:\Program Files (x86)\Hamilton\Methods\SomeMethod.hsl” -r -t -SimulationFlag

Hi @weiyolan, launching HxRun in simulation or not in simulation based on an external call is not very easy to do prior to Venus 6. I do not know of any simulation flags like those you mentioned, but I do know we did with the method manager 2 that was released a few years ago. I would have to dig through it to figure out how exactly it controlled the simulation toggle.

As far as the command line options go, this is all that I am aware of:
[[drive:]path]filename: Specifies the method file to open. Go to Method File Types for valid file extensions. If no path or a relative path is specified, the base path is the default methods path.
-r: Run method immediately.
-t: Run method immediately and terminate when method is complete.
-c: Execute HxRun from an editor.
-minimized: The window is minimized to the taskbar.

That being said, if you are using Venus 6 and have access to the Swagger ui then this can be done very easily. If you call your method to be started through Swagger then simulation is one of the input parameters for the load command:

would be interested to get to know how to toggle simulation mode prior to Venus 6 - so happy if you could look it up @MatthewSmith_Hamilton

Hi Max,

Eric shared a link here Library Downloads (Links) that has a shared folder for various libraries and tools. In there you will find the Method Manager 2 which was released in 2021. That is a standalone gui with a .dll called MethodManagerHelper.dll that has a function called “SetSimulation”. The gui utilized this function in conjunction with a toggle switch for setting the global simulation of the device it finds in your system configuration editor. I am sure this function can be used for inputs other than a toggle switch.

Matt

1 Like

thanks a lot @MatthewSmith_Hamilton

Hi Max,
You can use the function with “on” or “off” as inputs.

Regards,

1 Like