04-14-2006 04:39 PM
04-17-2006 05:15 PM
Hello John,
To answer your first question, generally to pass information back and forth between an operator interface and a sequence you should have your sequence post a UIMessage, and your operator interface reads the message and responds. If you look at the PostUIMessage help you see the following definition:
Thread.PostUIMessageEx ( eventCode, numericDataParam, stringDataParam, activeXDataParam, synchronous)
You can pass data with the message, and since the activeXDataParam is passed by reference you can update the value and use it in your sequence file. This is how you could send a serial number between the Operator interface and the sequence file.
Next, you mention that you are having problems with test
sockets waiting for disabled test sockets. I think this is probably due to
how the disabled flag is being set. We
have been able to disable a test socket if the user does not type in a serial
number (in the batch process), by modifying the batchuutdlg.c in the
modelsupport2.prj. We first declared a
variable static char string[200]; and in the goCallback we added the following
instead of the statement at line 932.
I hope you find this example helpful.
Regards,
04-18-2006 11:04 AM
04-18-2006 04:33 PM
04-19-2006 01:02 PM
John,
To answer your first question, the string array should be an array of
pointers.
Before I start on the rest of your questions I would recommend that you try to
modify the Test UUT sequence instead of the single pass. The Test UUT sequence
performs a number of other steps that you are probably missing from your
modified single pass. I would expect the reason why the execution is
stuck at the "Wait For Test Sockets" step is because you have not
removed the disabled UUTs from your batch. The Test UUT sequence removes
disabled sockets from the batch with the step called 'Remove Disabled/Readd
Reenabled TestSocket Threads from/to Batch'.
Regards,
Jesse O.
Applications Engineering
National Instruments
04-20-2006 08:26 AM
04-21-2006 12:45 PM