Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
Can I close a refnum to a control right after registering the event for it or do I need to close it later when I close the 'Event Registration Refnum'?
I've attached an example VI (and a picture of it) where it is closed before and after. I get no run-time errors.
If you read the help file for the Register Events function you will see that when you register a particular event it will stay registered until you unregistered it or your VI stops running.
This is why the Close Reference VI after you register the event does not cause any issues. The second Close Reference VI is unnecessary since you already closed the reference with the first VI.
What do you need our team of experts to assist you with?
We'll be in touch soon!