Jump to content

Measurement Plan Run Time


---
 Share

Recommended Posts

ok well those are the PCM codes, but that wont do much on its own.......

Maybe put "StartTime=time()" in the presettings, so you get a time stamp at the start of the program.
you can't use the program postsettings if you want to use a text element to output the results, but maybe put "EndTime =time()" in the post settings of the last feature to run to get a second time stamp? im asking......
then have a text element report with "Start Time " + StartTime+cr()+"End Time " + EndTime+cr()+ "Run Time "+getRecordHead("durationofrun")

Thats assuming they already have duration in the VPHEAD, if not then that'll need to be added (or just leave that out of the text element since it'll already be in the header)

but you cant do any of that without PCM

time.JPG

Link to comment
Share on other sites

I'm confused..

No, those are not PCM codes, it's a syntax with two different arguments.
First you say Its really quite a task. Then you say that wont do much on its own........
Explain what the enormous "task" is pleace. And why they wont do much.

I answered his question. The syntax with the first argument will get runtime. Second argument gets time when finished. And most people will understand that end time - run time = start time.. I didn't see any need to explain that. And I don't know if pcm is available. If not, I showed what record head parameter to use so he can add them to the record head.

He never asked "how do I add this to a text element in my custom print out". He might be using PiWeb, so your answer might be completely useless....

And you can do this without pcm..
Link to comment
Share on other sites

Well first of all, it is pcm, its a part of the "150 PCM commands". But i'm sure that number is much higher now.
your statement of "End time - run time = start time" is very true, but it was asked for so instead of being all smug about it i thought id try and add it in. Sometimes people ask for things that might not be 100% necesisary, but maybe in someones situation it might be helpful not to have to have to manually take the extra step. the easiest way to add start time i believe is in the pre-settings, but without PCm that's not available, so if Rakeshkumar didn't have PCM i would have tried to figure out a different way.
Your statement of "He never asked "how do I add this to a text element in my custom print out"" is also true. It was left up to interpretation, nothing specific at all in the original question, so i just thought of a way to give Rakeshkumar AN ANSWER that very well may be useless, but at least its something.

This is just a forum man, simple Q's & A's. You take things so serious......
Link to comment
Share on other sites

Im the most un-serious guy ever.. Haha, trust me. If we worked together you would laughing all day long.. 🙂
Well I think I understand what you said now. It just sounded like it was some big task, it can be done in several ways, some more laybour heavy then others. I also didnt understand what you tried to say with do much of its own. Since it do exactly what he asked about 🙂
You made it sound like is was a big task, thats how i read it. But I think I get what you where saying now.

How ever, there are 203 syntax available in 6.6. (if I remember correctly)

Chad: Have you checked you trash? I'll try tomorrow again, or I'll see if I can find some mirror service that can host it. Or you can chug by with a flashdrive, I'll promise, beers will be on me 😉
Link to comment
Share on other sites

That exercise was written for an early PCM training manual. I want to say 3.5, maybe 3.8. In any event, this was taught because Measurement Duration wasn't on the Printout Format Editor list. It's still tough to find because the unexpandable list field width cuts off the "ation" of Duration. This selection is in the Sys portion of the list, immediately under Temp. Base Align. Add that to your record head and you will have a record of the run time for your program.
Link to comment
Share on other sites

 Share

×
×
  • Create New...