01-31-2008 05:46 PM
02-01-2008 05:58 AM
Hi david,
did you try to wait for a valid refnum in your vi 2. I think it can be possible that there are timing problems and so your refnum is not valid. I had the same problem and now i ever check for a valid refnum if i pass a refnum to a dynamic called vi.
The picture shows what i mean. I hope it helps.
Mike
02-01-2008 09:47 AM
02-01-2008 12:01 PM
Lynn,
Those are interesting suggestions. I had not thought of using notifiers (never used them), or "action engine" (which I've never heard of, but am probably about to get very familiar with). We have however used queues, that is actually what vi1 is, a queued stated machine that waits for queue messages sent by teststand steps (calling a vi which writes to the queue). It actually works quite well.
It still seems strange that I've only seen this behavior on 2 of 4 machines, one of them seemingly fixed (so far) by a re-install of all NI software. The PC hardware is exactly the same also.
We have also seen weird control reference behavior in another instance, where we use a vi with a subpanel in a "wizard" type of application, and the subpanel vi has button control references passed to it. Occasionally, but just often enough to be a real pain, we will see the subpanel vi code act like 'done" was clicked, but not next. Most of the time it works flawlessly though. It seems like this might be related to the same cause, whatever that is.
Thanks for the suggestions!
David
02-01-2008 12:23 PM