ExecuteCommand

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
PMJ
Posts: 13
Joined: Mon 9. Jan 2012, 12:44

ExecuteCommand

Post by PMJ » Mon 3. Mar 2014, 14:14

Hi,
i have problem with ExecuteCommand"macrostop". When i use this command every time i've crash of PCAN explorer. I use it in VBs macro. For other commands it's work great.
Do have any ideas why?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: ExecuteCommand

Post by PEAK-Support » Mon 3. Mar 2014, 15:31

please send us a e-mail with your used PE Version and SerNo, incl. the "MACRO" to support[at]peak-system.com.
Without more information about OS Version, PE Version , used HW etc. we could not gave any answer.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: ExecuteCommand

Post by PEAK-Support » Tue 4. Mar 2014, 09:12

You are right! when using

Code: Select all

 ExecuteCommand "macrostop"
it will try to destroy the Scripting Engine itself, which could not work because it´s still in a called function (the function itself!)

To stop the Macro please use „Exit Sub“
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply