07-06-2005 07:23 AM
07-07-2005 06:05 PM
07-08-2005 07:10 AM
Hi Tyler T.,
Thank you very much for your response. Here is my follow up to some of YOUR questions.
My apologies for the confusion regarding which callbacks I am using. I am using the Test UUTs entry point, and I am using the ProcessSetup and ProcessCleanup call backs to initialize and close the instruments, respectively.
Yes, I am passing the containers as parameters between the callbacks in the model sequence file as well as to the MainSequence of the UUT's test sequence (i.e. the MainSequence callback step in the Test UUTs entry point sequence).
I am hesitant to use globals, probably because of my software programming background where I try to limit the use of global variables (harder to trace) versus passing varaibles from one function (or in this case, sequence) to another. Because this container gets passed between different sequence files, I do not think that using a File Global will work.
Would it be possible for you to elaborate more on the custom data type? The container I am using is a custom data type, persay, residing in my own type palletes.ini file, however there will be a different container for each test environment.
Again, I appreciate your time and response.
Thank you,
Jim
07-11-2005 08:13 AM
Hi Jim,
So this is my understanding. You have two different sequence files that are run for two different Test Environments. These two environments uses two different data structures to perform some initialization on two different instruments.
The best way to do so without any modification to the sequential process model is to create Sequence File Globals. So lets say that you have test sequence 1 and test Sequence 2. The two data structures will be DataStruct 1 and DataStruct 2. So open your Test sequence 1 in the sequence editor. From the "View" drop down box on the sequence editor, select "Sequence File Types" and create your DataStruct 1 here. Similarly do that same for Test Sequence 2, create DataStruct2.
Now use the ProcessSetup and ProcessCleanup callback. Again you shouldn't modify your process model. Go to Edit Menu >> Sequence File Callbacks. Select your callbacks and click add. This will automatically add your callbacks to your Test Sequence files. Now you can add the code relevant to your instruments here and you have access to your datastructure as well. The beauty with callbacks is, you can override the ones in your process model by the ones in your sequence files. This is automatically done, when you place the callback in your sequence file. Now we have accomplished what you wanted to do without a single modification to your process model.
I hope this helps
Sijin Karayil
National Instruments