hexagon logo

Why is that get only one measurement data after the script execution?

why is that get only one measurement data after the script execution ??

code:

Sub Main()
Dim App As Object
Set App = CreateObject("PCDLRN.Application")
Dim Part As Object
Set Part = App.ActivePartProgram
Part.AsyncExecute
End Sub
Parents
  • so this is supposed to run a part program asynchronously? if you are using this in a loop then you are going to tell pc-dmis to run a part program and before that part program completes you will run it again, this (in theory) should cause pc-dmis to execute in offline mode for each successive run, until the first one completes. Maybe this is the issue.


    Maybe you should try
    Part.Execute
    


    this will run the part program until it completes, then run the part program again.

    but then again i could be way wrong, could you give us more info on what you are trying to accomplish...
Reply
  • so this is supposed to run a part program asynchronously? if you are using this in a loop then you are going to tell pc-dmis to run a part program and before that part program completes you will run it again, this (in theory) should cause pc-dmis to execute in offline mode for each successive run, until the first one completes. Maybe this is the issue.


    Maybe you should try
    Part.Execute
    


    this will run the part program until it completes, then run the part program again.

    but then again i could be way wrong, could you give us more info on what you are trying to accomplish...
Children
No Data