I am writing an instrument driver in LABWindows/CVI. The driver defined a Boolean Attribute to let user to lock/unlock the intrument front panel keys.
In the attribute write callback routine, i wrote following code.
if (value==VI_FALSE)
viCheckErr( viGpibCommand(io, "GTL", strlen("GTL"),&ret));
else
viCheckErr( viGpibCommand(io, "LLO", strlen("LLO"),&ret));
but I get an error, is there anybody tell me how to fix it.
Thanks