08-05-2011 08:13 AM
Work with Labview operator interface.
I'm trying to get event when sequence file is closed.
I have created two callbacks to ApplicationMgr.ExecutionClosed and ApplicationMgr.SequenceFileClosing events.
According to TS Help first callback returns Execution object and second callback returns SequenceFiile object.
Both callbacks are automatically created Labview and have only argument from API to pass it to event handler.
In both Labview event handlers I use property nodes to get ID for objects (execution and file)..
Both property nodes generate errors #1 with reason: property node has wrong argument 1 (object reference as I undertand).
When I use conversion to varianr I view not empty reference in event parameter..
It very like as value returned EntryPoint.Run method for execution and OpenSequenceFile for ApplicationMgr.
What may be wrong?
Something is happened in memory or this behaviour is result of my wrong actions?
Solved! Go to Solution.
08-08-2011 03:17 PM
Hi anpis,
I hope you are doing well today! Could you provide a screenshot of your block diagram that shows this? Also, just to clarify, did you create these callbacks within LabVIEW, or are they callbacks in TestStand? Could you also provide a screenshot of the error message that you are seeing? Thanks, anpis. Have a great day!
08-09-2011 01:15 AM
Hi, Taylor
Thanks for responce.
Today I have solved this problem.
The reason was wrong understanding event handling in Labview.
I passed sequence file reference from callback VI into LV event handler and then tried to get file ID in LV event loop and close the reference.
This way was wrong
File reference here is bad.
After I have changed getting file ID directly into callback VI I have normal work.
08-09-2011 01:15 AM
Hi, Taylor
Thanks for responce.
Today I have solved this problem.
The reason was wrong understanding event handling in Labview.
I passed sequence file reference from callback VI into LV event handler and then tried to get file ID in LV event loop and close the reference.
This way was wrong
File reference here is bad.
After I have changed getting file ID directly into callback VI I have normal work.
08-09-2011 04:15 PM
Hi anpis,
I am glad to hear it is now working successfully. Thanks for the update. Have a great day, and good luck with your project!