LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Some errors occurs when compiling old .prj from 5.0 to 2013

Dear all,

 

I'm a new guy for programing.

 

Now I'm trying to compile a CVI project from 5.0 to 2013.

 

Some error messages occured. I think the problem is the library function is not compatiable for the version of 2013.

 

The code is as following (

 

int TimebaseDev = -1;

 

int DacClkOpen(int addr)
{
char buffer[100];
DacClkDev = ibdev (0, addr, NO_SAD, T1s, 1, 0);
if (DacClkDev < 0) return -1;
sprintf(buffer, "SYMM %d;TRIG ON", WAVETEK_SYMM);

Talk(DacClkDev, buffer);
return 1;
}

 

The error message is as following

 

NON-FATAL RUN-TIME ERROR: "wavetek.c", line 45, col 5, thread id 0x00001688: Library function error (iberr == 2 [0x2]).

 

Thanks for your help.

0 Kudos
Message 1 of 4
(4,435 Views)

what kind of hardware do you want to control ?

 

what is "talk" function ?

0 Kudos
Message 2 of 4
(4,418 Views)

This is from a very old WaveTek instrument driver. Talk/Listen are acronyms for the GPIB bus. Is the instrument connected? correct address? I don't remember what "iberr = 2" is but it is a GPIB Write error

0 Kudos
Message 3 of 4
(4,376 Views)

Did you get the driver from WaveTek?

It seems that you are not sending SCPI commands to the instrument.

 

0 Kudos
Message 4 of 4
(4,355 Views)