Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Return values of functions defined by ni4882.h on VC++

I am testing a VC++ program using ni4882.h and linked ni4882.obj. The program can be complied, linked, and executed. But the return values of the functions defined by ni4882.h is strange.

 

For example 

case1 without any GPIB-USB cable : IBsta() = 32768  ( usually 0 by c program)

case2 with GPIB-USB cable and without GPIB device connection: IBsta() = 304  ( usually 14 )

 

If you know about the phenomenon like this, please let me know how can I avoid this.

 

My code is below. ( the verbose path is used but this is not problem. )

 

#include <iostream>
#include "C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C\include\ni4882.h"

 

int main()
{

SendIFC(0);
std::cout << Ibsta() << std::endl;

return 0;

}

0 Kudos
Message 1 of 1
(971 Views)