I've got a setup with a computer, a USB-6221 and a USB-6251. I have one continuously outputting an analog waveform and the other one sampling data. Every couple minutes, the waveform will stop being output for a small amount of time. I'm using a Visual Basic program to do this. Here's the snippet of code that sets it up. This issue only happens on computers running Windows 10, while with Windows 7 it's fine. Does anybody know if there's a setting in Windows 10 that messes with communication to the DAQ?
AO
DAQmxErrChk DAQmxCreateTask("", AOFastHandle)
DAQmxErrChk DAQmxCreateAOVoltageChan(AOFastHandle, "Dev" + Trim(Str(Sys.FastBoardNum)) + "/ao0:1", "", -10#, 10#, DAQmx_Val_VoltageUnits2_Volts, "")
DAQmxErrChk DAQmxExportSignal(AIFastHandle, DAQmx_Val_Signal_SampleClock, "/Dev" + Trim(Str(Sys.FastBoardNum)) + "/PFI5")
DAQmxErrChk DAQmxCfgSampClkTiming(AOFastHandle, "/Dev" + Trim(Str(Sys.FastBoardNum)) + "/PFI5", ClockFreqHz, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_ContSamps, 1000)
Call DAQmxWriteAnalogF64(AOFastHandle, npts, False, 10#, DAQmx_Val_GroupByScanNumber, AOBuffDP(1), nWritten, ByVal 0&)
DAQmxErrChk DAQmxStartTask(AOFastHandle)