11-25-2020 09:17 AM
Hi everyone,
I am trying to open a visa ressource to communicate with a device with GPIB bus. I am using the function viOpen and I wrote this :
viOpen (ketlhey, GPIB1()::27::INSTR , VI_NULL, VI_NULL, 0); (my device's adress is 27).
I don't understand why this does not compile, i get the error: "31, 27 error: called object type 'int' is not a function or function pointer".
Can you help me please ?
Thanks a lot !
Solved! Go to Solution.
11-25-2020 09:53 AM
Hi,
I see two problems, first it probably should read "GPIB1()::27::INSTR", second the last parameter cannot be zero, it is a parameter that is returned by viOpen, so it should be something like &instr
You can use the built-in help to learn more about the function parameters