LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Event Registration in Reentrant VI

I have a VI running two reentrant Clients.  The client uses a subVI (not reentrant) to handle keystrokes.  The client passes a VI refnum to the subVI to dynamically register the keydown event.  When I run the main VI I receive the FP not open error (1001).  I have made the subVI reentrant and did not change the error output, any ideas?
Download All
0 Kudos
Message 1 of 10
(4,147 Views)

Bogus reply deleted by Ben.

Message Edited by Ben on 07-20-2007 02:05 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 10
(4,146 Views)

THen on second thought and re-reading...

I believe reentrant VI's share FP's.

Try using a template instead.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 10
(4,137 Views)
Thanks for the quick reply,
 
However, setting the subVIs to reentrant does not fix the problem.   I believe the FP that is being called in the error is the reentrant subVI.

Adam
0 Kudos
Message 4 of 10
(4,137 Views)

Hi Adam,

I replaced your "This VI" constant with a "Open VI" that used a "This VI Path" constant and it worked.

I am not sure why the constant does not work.

Could someone else take a look and see if this is a bug or am I missing a sublty?

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 10
(4,127 Views)

Is it possible that the constant refnum is a refnum to the disk instead of the clone?

Message Edited by sumguy16 on 07-20-2007 02:48 PM

0 Kudos
Message 6 of 10
(4,124 Views)

I suspect a bug but since this stuff has changed with LV 8+, I want someone else to share their thoghts on this.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 10
(4,115 Views)

I have attached a modified VI testing the difference between the "This VI" refnum constant and the "This VI's path" -> open refnum constant.  The comparison equates both, but the hex values are different.  The FP 1001 error still occurs with the Dynamic event registration, the DER requires that the disk FP is open...Why? I don't know.

Odd show...

 

Download All
0 Kudos
Message 8 of 10
(4,109 Views)
This was reported to R&D (CAR 496I9700) and will be fixed in the next version of LabVIEW.
It was confirmed as a bug.
Message 9 of 10
(4,058 Views)

A big THANK YOU to Jason C. and Craig S. who Aristos attributed credit for finding this CAR!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 10
(4,042 Views)