03-19-2014 05:03 AM
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.
03-19-2014 08:54 PM
what kind of hardware do you want to control ?
what is "talk" function ?
03-27-2014 04:59 PM
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
03-30-2014 08:30 PM
Did you get the driver from WaveTek?
It seems that you are not sending SCPI commands to the instrument.