hexagon logo

Need instruction or code

Hi.
I wonder if there is an instruction or code that to certain hour executes a program in PC dmis?

as always, thanks for any information.
Parents
  • Having some time on my hands while in retirement, I thought I would reminisce through some Question on the forum and found this question about starting a Pcdmis measurement program at a particular time. I didn't see a real answer to this question so I put together this Pcdmis Automation application written in VB using Visual Studio. When I was writing automation code for work, it was always using C#. I've had a few ask if I could give a sample code in VB. Here it is.

    Not having a license of Pcdmis, I have a couple of users test my code for me, they gave me the thumbs up. Hopefully, the source or executable, each in a separate zip file will not give you to much trouble.

    The application presents a user interface with two list boxes, the one of the left are folders in your default Pcdmis path, the list box on the right are measurement programs in the currently active folder. The bottom of the UI is a status line letting you know what the application is doing. After the UI appears you'll need to what a bit for pcdmis to startup, flash on your screen then disappear. at that point the application is connected to Pcdmis which is running in the background. After clicking on folders and finding a program to run, click on the program name in the right list box then set the time to start the execution of the selected program. Click on the "Set Autostart Time" button initiate. The countdown clock on the lower left will countdown to the moment the measurement program selected will be executed.

    There are two download, this one is of the Visual studio VB project.

    VB project folder
    https://drive.google.com/file/d/1lu-SQD7sp4FU7EXIEbyHEVEQ3DF1Nu47/view?usp=sharing

    Put this in your Visual Studio project folder.

Reply
  • Having some time on my hands while in retirement, I thought I would reminisce through some Question on the forum and found this question about starting a Pcdmis measurement program at a particular time. I didn't see a real answer to this question so I put together this Pcdmis Automation application written in VB using Visual Studio. When I was writing automation code for work, it was always using C#. I've had a few ask if I could give a sample code in VB. Here it is.

    Not having a license of Pcdmis, I have a couple of users test my code for me, they gave me the thumbs up. Hopefully, the source or executable, each in a separate zip file will not give you to much trouble.

    The application presents a user interface with two list boxes, the one of the left are folders in your default Pcdmis path, the list box on the right are measurement programs in the currently active folder. The bottom of the UI is a status line letting you know what the application is doing. After the UI appears you'll need to what a bit for pcdmis to startup, flash on your screen then disappear. at that point the application is connected to Pcdmis which is running in the background. After clicking on folders and finding a program to run, click on the program name in the right list box then set the time to start the execution of the selected program. Click on the "Set Autostart Time" button initiate. The countdown clock on the lower left will countdown to the moment the measurement program selected will be executed.

    There are two download, this one is of the Visual studio VB project.

    VB project folder
    https://drive.google.com/file/d/1lu-SQD7sp4FU7EXIEbyHEVEQ3DF1Nu47/view?usp=sharing

    Put this in your Visual Studio project folder.

Children
No Data