I’m finding that sometimes after doing a factory reset in code, the camera doesn’t appear to be ‘ready’ for the next command, and I get an exception. The reason why I think this may be a timing issue is that if I step through the code, it doesn’t happen.
var nodeMap = device.NodeMaps[NodeMapNames.Device]; //Reset to factory defaults nodeMap.Set("Std::UserSetSelector", "Default"); nodeMap.Execute("Std::UserSetLoad"); nodeMap.Set("Cust::fastReadoutMode", "Off"); //Exception here
The Exception is:
Stemmer.Cvb.CvbException: 'EnumerationNode[Cust::fastReadoutMode]: WriteMem returned error: TL Error: -1001, WriteReg failed'
Is there a better way to do this (I don’t want to do Thread.Sleep!)