Jump to content

inspection_start_pcm.txt, executed twice for measurement plan run ?


---
 Share

Recommended Posts

I'm having a problem with inspection_start_pcm.txt and inspection_end_pcm.txt being executed twice during the run of a measurement plan. Its obviously causing problems, and i can't seem to figure out why. Any suggestions ?

Current environment is Calypso 5.4, on windows 10 platform.
Link to comment
Share on other sites

Is it happening on other programs?

I have had several programs get corrupted. I suspect it's the security software IT has installed.
Link to comment
Share on other sites

I have seen other bugs with the external PCM-files so obviously they fucked something up. As usual.
Solve it like this:

Put this in the file that executes twice:

if isParameterDefined("FileAlreadyExecuted") == false

FileAlreadyExecuted = true

here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute

endif
This should check if the parameter "FileAlreadyExecuted" is defined. In the first run this should give false and therefore executing the code within the if-statement. Including defining the parameter. The next times Calypso wants to execute the file it will be defined and therefore skip all the code.
Link to comment
Share on other sites

Ahh very clever ! Thanks Henrik. cheers

Yes it is happening on all programs, even new ones. Next attempt after Henriks clever code snippet is to create new machine from scratch, not to mention to upgrade which is long overdue.
Link to comment
Share on other sites

 Share

×
×
  • Create New...