LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Open Visa Ressource

Solved!
Go to solution

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 ! 

0 Kudos
Message 1 of 2
(836 Views)
Solution
Accepted by topic author Armando1223

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

0 Kudos
Message 2 of 2
(825 Views)