10-08-2019 10:53 AM
Hi, recently I am starting to use LabWindows/CVI 2017 as my primary coding tool. Before this, I use LabVIEW a lot and also has some experience with ANSI C programming. I read the "visa.h" file but could not understand two lines (line 88 and line 89):
typedef ViStatus (_VI_FUNCH _VI_PTR ViHndlr)
(ViSession vi, ViEventType eventType, ViEvent event, ViAddr userHandle);
This typedef statement does not look like a regular typedef statement. In the above statement, what is typedef-ed to what? Thanks.
-Ling
Solved! Go to Solution.
10-09-2019 02:57 AM
That's an alias called ViHndlr for functions with a signature as
ViStatus _VI_FUNCH functionname (ViSession vi, ViEventType eventType, ViEvent event, ViAddr userHandle);
This particular alias is used by viInstallHandler() and viUninstallHandler() and this is is usually made to ensure that multiple functions which take a callback function pointer use the same signature i.e. avoid copy-n-paste errors.