Hi,
I am writing a specific driver using CVI 2010. I am getting a strange error when I call functions in this driver from Teststand. I have an attribute with read and write callbacks.
// Get function
if(!Ivi_Simulating(vi))
{
/*! Edit here */
checkErr( Ivi_GetAttributeViAddr(vi, VI_NULL, UMC_ATTR_BD1_SET_POINT1, 0, &addr )); //directs to read callback
}
//Set function
if(!Ivi_Simulating(vi))
{
/*! Edit here */
checkErr( Ivi_SetAttributeViAddr(vi, VI_NULL, UMC_ATTR_BD1_SET_POINT1, 0, addr )); //directs to write callback
}
- Issue
Now the issue is that they work fine if from teststand I first call try to read and then write but read callback does not function when I first try to write and then read.
- What have I tried?
- I have trying debug the program. The debug point in read callback is not hit (although it is hit in Get function), if Set function has been called first.
- I have also put wait(fewSeconds) between Set and Get as I thought that attribute might be locked and was not freed after write callback immediately. But nothing changed.
Any idea what am I doing wrong????
Regards
RB