12-03-2009 09:37 AM
Hi,
I have several threads running, each waiting for an input queue (queue names are numbered by threads: "Queue0", "Queue1", ...) and expecting an individual container type as input in the queue.
I have variables for all these input containers, also numbered by threads: FileGlobals.Input0, FileGlobals.Input1, ...
Now I would like to send these input containers through the queues to the various threads in a loop in TestStand, e.g., something like (in pseudo code representing steps in a sequence):
for thread = 1 to n
Enqueue(Queuename= Str(thread, "Queue%d"); Element to enqueue: Str(thread, "FileGlobals.Input%d"))
end
I tried to enqueue
FileGlobals.GetPropertyObject(Str(thread, "Input%d"), 0)
and the thread end of the queue gives me an error about an incompatible type being dequeued. I also tried the same with "AsPropertyObject", did not work either.
Is there a way to do this?
Thanks,
Peter
Solved! Go to Solution.
12-04-2009 01:23 AM
12-04-2009 08:50 AM
Works! Perfectly!
Thank you.
Peter