I using cFP2200 for data acquisition and I want to set watchdog on the two cfP2200. Some time my code set the watchdog and some time I get time out exception in the following code .Please suggest.
CNiReal32Vector output;
CNiBoolVector status;
m_NIFPDAQSystemPtr->SetNetworkWatchdogTimeout(GetFailoverTimeOut());
CNiFieldPointIoModule &objIOModule=m_NIFPDAQSystemPtr->GetIoModule((short)GetModuleID());
short nChannelCount = objIOModule.GetChannelCount();
objIOModule.GetNetworkWatchdogSettings(status,output);
status[GetChannelNumber()] = TRUE;
output[GetChannelNumber()] = !GetInitialBit();
objIOModule.SetNetworkWatchdogSettings(status,output,INFINITE );
objIOModule.SetNetworkWatchdogEnable(TRUE);
objIOModule.GetChannel(GetChannelNumber()).Data = GetInitialBit();
/// Where m_NIFPDAQSystemPtr is pointer of CNiFieldPointNetworkModule ;