Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

What switches and/or files do I need to include or link on my cc compile command from a HP-UX 10.2 command prompt using NI-VISA functions and the visa.h header file

The error it gives me is that the pointer is not assignment compatible..and Assignment #2 was not valid .I was using the example 2-1 from the NI-VISA User Manual. I was using the following compile command

cc -Ae -I/usr/include -lvisa -c filename.c.

The compile error goes away once I take the viWrite function out. What am I doing wrong..
0 Kudos
Message 1 of 2
(3,039 Views)
You can find multiple examples in (assuming a default installation) "/opt/vxipnp/hpux/NIvisa/Examples". We recommend gcc but you should be able to use cc if you want. The examples use a Makefile with directions for each.

Dan Mondrik
Senior Software Engineer, VISA
National Instruments
0 Kudos
Message 2 of 2
(3,039 Views)