Bob,
I still have problems understanding the TestStand API and data exchange. Your answer is still unlogical to me. Let me explain:
I have a sequence file called unittest. It has two sequences, test and main, where main just calls test. It also has some file globals, amoung are devicelist (Array of string) and TAList (array of myType). The sequence test calls at the moment 3 sequences in the process model file, as are GetDeviceList, DevicesOK and GetTAList. All those sequences have a parameter CallerRef, which is set by test to RunState.ThisContext. The called sequences accept CallerRef and forward it to a LabVIEW VI. I have tried to pass the results of that LabVIEW VI to different locations in order to get it back to some of the fileglobals in unittest. Tried CallerRef.locals.xxx, CallerRef.FileGlobals.xxx and so on; even tried to experiment with Runstate.Root.Step.TS.SData.Stepname and related values.
You told me I could access a local variable X from my model file as RunState.Root.Locals.X. I ever thought of locals being related to sequences, not to sequence files. So I am missing a statement resulting in the proper seuence _within_ RunState.Root.
The TSHelp states, that RunState.Root is the 'Sequence context for the root sequence invocation. If you ... use an entry point from the default TestStand process model, the Root property is the sequence context of the Test UUTs or the Single Pass sequence.'
With my tests I have found, that Runstate.Root.Step.TS.SData.Stepname point to test in Unittest. If I use Main instead of root, it points to the very same. If I use Caller, this points to the direct caller for the sequence in queestion.
Maybe I am just overloaded or 'misdirected' with my LabVIEW experience, but I am still disappointed with that TS API and its documentation. Maybe I need an example on how to build a library of tool sequences in the process model file and haw to transfer (large?) data to the callers in the target sequence file. Could you or someone else at NI help me with a more detailled explanation?
I would even call to Texas from Germany, If I could get a contact. This might be more effective than exchanging emails.
You may contact me at "u . frenz @ getemed . de" (remove the spaces between the quotation marks - I do not like my adress being fished out of the web for SPAM). But please remember the time zone relations when dating a contact! AFAIK it is 10 hours later here, isn't it? I assume the first chance was on monday evening my time, morning yours.
Thanx for your help!