08-31-2007 08:29 AM
08-31-2007 09:36 AM
You need to use the SyncManager. Try this VI. Pass the Runstate.engine to the vi allong with the name of the notification and it will set the notifier.
09-03-2007 04:19 AM
Paul, thank you for the VI.
I implemented it in TS and it worked great if I use text for referance. Do you know if this will work using "Object Reference" as in the paralell model and the attached seq file? It seems that the referance name must be a text using the syncmanager API?
09-04-2007 07:33 AM
09-11-2007 04:53 PM
09-12-2007 07:42 AM
I am sure that by putting the notifier references in an array is not going to cause them to change. The WaitForControllerNotification that I refered to is also in an array, one for each testsocket, and it has been working fine (see ModelData.TestSockets[].WaitForControllerNotification {granted it is an array of containers, one of wich is a notifier ref})
Then I noticed that the notifier ref change continuously, so I guess it is wrong to store the notifier refs into an array.
09-12-2007 08:50 AM
09-12-2007 12:38 PM
Richard,
In your example you do not create a notification. The part where you "init the ref array" only creates an array of empty references. You sould create a notification either with a teststand step or with the synchronization manager. Create X notifications, one for each socket, and put the references returned from the create step into an array.
Also, I realize that this is just an example, but if you don't plan on using the same notification for both teststand and labview I would stick to using the labview synchronization step alone.
Paul
09-12-2007 04:41 PM
09-13-2007 08:32 AM
Richard,
Yes I missed that part. I do see that you are using the WaitForControllerNotification and inserting that into the array. I actually tried running it this time and I was getting an error on when I would set the notification with the statuswindow.vi. I did trace through, and the reference that was put into the array was the same one that I got back when read. I don't know why the set didn't work. I actually only tried the solution I gave above the first time when the original question was posted(the "then pass the notifier reference into the VI and operate on it" one). This was in TS 3.0. I had to get TS4.0 eval version to test out your example.
My eval period for the day is up. I would like to try my original test that I performed in TS3.0 when I gave the solution above but it looks like I will have to wait for tomorrow. It was just a simple create notification by reference, pass the reference to a LV sequence (the one posted), and then wait on the notification. If the wait-step doesn't wait I determined it was set. To "prove" this I re-ran and skipped the set step and the wait-step did wait. Maybe you can give this a try...
I'll see if I can figure out the problem, but from what I could tell (now that I looked at it much closer) I didn't see immediately what was wrong.
Paul