05-26-2010 09:02 AM
You probably will have to ask the question first part or second part, unless you can automatically detect that you can proceed to the second part. Then you call the relavant sub sequence depending which part you need to run. That's the easily bit.
The fun bit would be to generate a result which is the combined results of the two runs. This is going to depend how you have have stored your original results so that you can reload them to either add the second part of the results or do an extra report generation.
I might be inclined to store the results in a database and then maybe retrive the two results off line with some sort of database query to generate a single report.
Or you could in the Cleanup, store the first parts' ResultsList in say StattionGlobals or possible in a database (not sure about the database), then on the second part during the Cleanup of the MainSequence, retrieve them from StationGlobals and stitch the two together then generate the report as normally which will be the complete set of results (part 1 and part 2).
Regards
Ray Farmer
05-26-2010 03:12 PM
Yeah
Ray called it the fut bit, i called it crazy !
My idea was the same
In this thread you will find an answer how to save the hole result list object as binary to file drive
later you can reload it and add it to your "second" sequence.
http://forums.ni.com/ni/board/message?board.id=330&thread.id=18207
While driving home i thought an other solution could be to add some Batch feature to your sequence file(s)
a master sequence file calls your Sequence once in a batch. when it enters step 5 it send a message to the master.
the next step should be a Messagebox or WaitForNotifiy to proceed with step 6.
When the master receives the notofication it instances a new Execution of your sequnce in the batch. and so on ....
Now there are n - Execution hanging in the Messagebox or WaitForNotify so bring them to finalize by enter a button or sending a notification by the master.
Thats it.
Now its time to end! I am going to holiday tomorrow 🙂
See you in next week
Juergen
06-07-2010 07:19 AM
06-08-2010 10:28 AM
"... I am not sure how to marry up the data from the two partial tests as the current file name scheme is "modelNumber_[serialNumber]_yyyymmdd_hhmmss.html"."
Have you considered setting the Report Options to "append". This would have the disadvantage that requires you to drop the timestamp from the report file name, but the advantage is that no further time consuming database work would be needed... You would be done.
Another suggestion is to include the Pass/Fail "status" as part of the report file name.
Hope this helps,
Eugene