hexagon logo

Assign variable, PCdmis or Inspect running?

Hello!

Fast question! Is it possible to assign a variable that will let us know if it is run by pcdmis directly or through inspect (be 0 if run by inspect for example and 1 if run through pcdmis)? Thanks in advance!
Parents
  • Good day,

    what do you mean by "run" ? read or write? It doesn't really make a difference, you can't determine from which source a variable was written, you can only read out the content.

    It is also not possible to determine whether a measurement program was started by pcDMIS itself or by automation, if that's what you meant.

    You can maybe create a second variable and write it there if the first one was changed by automation, maybe that will help​.


    I want to have 2 applications to run our programs, Pcdmis in operator mode and Inspect. Depending which application is being used to run the program, I want a different outcome. Example (not really what I want it to do but just for reference), if pcdmis runs the routine I have a printed repport and a message to go to the printer and fetch it. If I run it through Inspect I will have a report saved as pdf in the network and a different message.

    To do this with logic commands I would like to have an assignment that recognizes the launcher (pcdmis, inspect, pcdmis in operator mode etc) as it does with the current pcdmis version, pcdmis directory etc.

    Ultimately, I want admins to run pcdmis and operators to run inspect, expecting different outcomes from the same program that "realizes" which app is running it
Reply
  • Good day,

    what do you mean by "run" ? read or write? It doesn't really make a difference, you can't determine from which source a variable was written, you can only read out the content.

    It is also not possible to determine whether a measurement program was started by pcDMIS itself or by automation, if that's what you meant.

    You can maybe create a second variable and write it there if the first one was changed by automation, maybe that will help​.


    I want to have 2 applications to run our programs, Pcdmis in operator mode and Inspect. Depending which application is being used to run the program, I want a different outcome. Example (not really what I want it to do but just for reference), if pcdmis runs the routine I have a printed repport and a message to go to the printer and fetch it. If I run it through Inspect I will have a report saved as pdf in the network and a different message.

    To do this with logic commands I would like to have an assignment that recognizes the launcher (pcdmis, inspect, pcdmis in operator mode etc) as it does with the current pcdmis version, pcdmis directory etc.

    Ultimately, I want admins to run pcdmis and operators to run inspect, expecting different outcomes from the same program that "realizes" which app is running it
Children
No Data