Thank you for your prompt feedback, Luke !
I seems to work and the reference clocks look synced on the oscilloscope. So far so good.
However, I get the following error when running a buffered task from the task manager and a monitor from the ACQ4 manager. The monitor regularly checks the state of pfi ports on the nidaq card. I don't understand the error as the monitor should not engage the refClockSource (and it doesn't which I checked with print-outs SuperTask.py).
--------------
2019.02.26 18:57:59 Error in task thread, exiting.
Error starting task:
Error starting device 'DAQ'; aborting task.
NIDAQError: NiDAQ Error while running function 'DAQmxWriteDigitalU32(153138680L, 40000L, False, 10.0, 0, <acq4.pyqtgraph.util.colorama.win32.LP_c_ulong object at 0x000000001EC6AD48>)':
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: DAQmx_RefClk_Src
Source Device: Dev2
Source Terminal: PFI8
Required Resources in Use by
Task Name: _unnamedTask<13>
Source Device: Dev2
Source Terminal: None
Destination Device: Dev2
Destination Terminal: RefClockInternal
Task Name: _unnamedTask<15>
Status Code: -89137
Error starting task:
File "acq4\util\Thread.py", line 23, in __run_wrapper
self.__subclass_run()
File "acq4\modules\TaskRunner\TaskRunner.py", line 973, in run
printExc("Error in task thread, exiting.")
File "acq4\util\debug.py", line 42, in printExc
acq4.Manager.logExc(msg=msg, msgType=msgType)
------- exception caught ---------->
File "acq4\modules\TaskRunner\TaskRunner.py", line 963, in run
self.runOnce()
File "acq4\modules\TaskRunner\TaskRunner.py", line 1046, in runOnce
raise HelpfulException("\nError starting task:", exc)
Error starting device 'DAQ'; aborting task.
File "acq4\modules\TaskRunner\TaskRunner.py", line 1032, in runOnce
task.execute(block=False)
File "acq4\Manager.py", line 975, in execute
raise HelpfulException("Error starting device '%s'; aborting task." % devName)
NIDAQError: NiDAQ Error while running function 'DAQmxWriteDigitalU32(153138680L, 40000L, False, 10.0, 0, <acq4.pyqtgraph.util.colorama.win32.LP_c_ulong object at 0x000000001EC6AD48>)':
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: DAQmx_RefClk_Src
Source Device: Dev2
Source Terminal: PFI8
Required Resources in Use by
Task Name: _unnamedTask<13>
Source Device: Dev2
Source Terminal: None
Destination Device: Dev2
Destination Terminal: RefClockInternal
Task Name: _unnamedTask<15>
Status Code: -89137
File "acq4\Manager.py", line 972, in execute
self.tasks[devName].start()
File "acq4\devices\NiDAQ\nidaq.py", line 320, in start
self.st.start()
File "acq4\drivers\nidaq\SuperTask.py", line 349, in start
self.writeTaskData() ## Only writes if needed.
File "acq4\drivers\nidaq\SuperTask.py", line 194, in writeTaskData
self.tasks[k].write(d)
File "acq4\drivers\nidaq\nidaq.py", line 396, in write
nPts = getattr(self, fName)(data.size / numChans, False, timeout, LIB.Val_GroupByChannel, cbuf)
File "acq4\drivers\nidaq\nidaq.py", line 286, in <lambda>
return lambda *args: func(self.handle, *args)
File "acq4\drivers\nidaq\nidaq.py", line 87, in <lambda>
return lambda *args: self.call(attr, *args)
File "acq4\drivers\nidaq\nidaq.py", line 116, in call
raise NIDAQError(errCode, msg)
-------------------------
Thanks for having a look at this.
Cheers,
Michael