To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The following example demonstrates a method for translating VISA event handling to a top-level user event structure.
Description
This program demonstrates a method for translating VISA event handling to a top-level user event structure. Using application control methods, VISA events may be extracted and registered at the user level; such that, program execution may be triggered by events within VISA hardware on the system.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
Patrick Corcoran
Application Engineering Specialist | Control
National Instruments
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
The "Service-Request"-event selected by default did not work for my ordinary COM-port!
"Serial character"-event Type does work! ![]()
Hi denibel,
I agree with you. It seems that this example still utilizes polling instead of real event scenario.
Do you have any better solution for registering VISA event as a top level user event?
To be more specific about the previous two poster's comments, I'm looking to not only register that the event occurred, but also have the data and timestamp included in the event buffer.