I am porting my application from Windows 98 to Windows XP under
Development env. LabWindowsCVI 7.1
I am using the DAQ - PCI6023E
CVIRT version 7.1.0.306
The scenario where the function fails are as below (will sent you the
code if you need)
Function Collect_Data {
setup the card;
loop
SCAN_Start() // works fine here
endloop
wait for user defined delay
setup the card again;
loop
SCAN_Start() // see error message below
endloop
}
Error message is:
Function SCAN_Start: (return value == -10609 [0xffffd68f]).
transferInProgError: A transfer is already in progress for the specified
resource, or the operation is not allowed because the device is in the
process of performing transfers, possibly with different resources.
The application is a single threaded design.
Since the function SCAN_Start works well first time and it fails in the
2nd loop I am wondering whether it has to do anything to do with the
compiler optimization?
How do I turn off the compiler optimization option in LabWindowsCVI 7.1?