Launch CMM-Manager Program using External Command

Launch CMM-Manager Program using External Command

It is possible to run another CMM-Manager Program from the External Command operation.  This is useful if you'd like to create a simple launching program - i.e. main program that prompts user for next program, and then runs accordingly to user response.  A similar work flow can be achieved using Shop Floor Launcher, however this method allows some unique functionality such as using Barcode scanner to specify Program.

In this example, a simple VB Script is used to display an InputBox() where user can specify Program number. 



 It is possible to replace user input with Bar Code scanner.  We recommend this one - LS2208 General Purpose Barcode Scanner | Zebra



Most modern USB or wireless Barcode scanners can be setup to replace user Keyboard entry.  See example here - https://youtu.be/-AZtCto4RwE - while CMM-Manager InputBox() is open during program run, user simply scans barcode, contents of barcode are sent to CMM-Manager along with user defined characters such as [Tab} or [Enter] key.  This method reduces the possibility of user keyboard entry errors.

Depending on the user response (or Bar Code info) the CMM-Manager program executes one of four External Command operations.  Find details on VB Scripting in CMM-Manager here - CMM-Manager | Advanced Topics Knowledge Base (qxcmm.com)

The External Command command allows you to execute a DOS Prompt / Terminal style command(s) as a CMM-Manager program operation. This is useful in running external applications from within CMM-Manager and allows for the use of fixed or dynamic command arguments. Dynamic command arguments are allowed and can either be customer data entries or variables from a previous VB Script.  In this case the Arguments for External Command are fixed and contain both the Program File Path / File Name as well the the "/r" parameter that let's CMM-Manager know to Run the specified program.



See the attached sample program.  When run it will prompt user for input between 1-4 (again barcode scanner could provide this input) then executes Prog_1.comp, Prog_2.cmp, etc. based on user input.



    • Related Articles

    • VB Script - Getting Started

      What can I do with VB Scripting? CMM-Manager VB Scripts run in line with program execution and can be used to perform loops and flow control, display custom messages, prompt user for input that then influences program execution - i.e. skip section of ...
    • VB Script - Variable use for Feature Names and User Notes

      When looping Program steps by use of VB Script loop - i.e. For Loop, Do Until, etc. - Features that have been executed more than one time will automatically be renamed using standard convention as such - Circle1, Circle1...1, Circle1...2, ...
    • Parametric Programming - Part Families

      Do you manufacture and inspect Part Families? Meaning, variety of parts having similar overall geometry but with varying dimensional characteristics? Instead of cresting one program for each unique part, you can realize significant time savings by ...
    • VB Script - Prompt to skip manual Alignment

      Many times a CMM program may have a manual alignment followed by a DCC alignment. In some cases, the manual alignment does not need to be executed each time the program is run. This is true if subsequent running of the program is done with each part ...
    • Possible CMM-Manager Installer Failures and Resolution

      On occasion, customers may encounter issues with the installation package not completing as intended. Depending on the circumstances, it is possible that the CMM-Manager application can still be launched and used without realizing any immediate ...