Start standard macro from commandline

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
michael.stahl
Posts: 4
Joined: Wed 24. Feb 2016, 09:10

Start standard macro from commandline

Post by michael.stahl » Wed 24. Feb 2016, 09:22

Hello,
is there a way to play standard macros over commandline? Probably not because I can't set up the bus.

I am looking for a way to configure our devices. The easiest way is a standard macro, but they should start out of a test environment.

User avatar
M.Gerber
Design & Documentation
Design & Documentation
Posts: 68
Joined: Mon 13. Sep 2010, 16:34

Re: Start standard macro from commandline

Post by M.Gerber » Mon 29. Feb 2016, 11:09

Hello Michael,

There's an indirect possibility to start a macro from command line. This can be achieved by loading a project that contains and starts the desired macro.
  1. Add the Standard Macro to a project that contains also the CAN connection you want to use.
  2. Select the project in the Project Browser (usually on the right). The Properties window (usually below) now shows the properties of your project.
  3. Add the name of the Standard Macro (without any file name extension) into the Post Load Command field. This enables the automatic start of your Standard Macro when the project is opened.
  4. On the command line, now you can call PCAN-Explorer with your project (full path embraced by quotation marks) as parameter.
Hope this is an appropriate solution for you.

Kind regards
Mark

P.S.: Because this possible solution came later, I've deleted the previous answer to your question.

Post Reply