Dear Fausto
I would be grateful for your advice. I have spent a while trying to sort out a problem with simultaneous AI and AO triggering and I wonder if you are familiar with the problem.
Actually, I use DT9832 board but I am quite certain that it is a driver problem by now. I use Matlab 2021a to avoid AO problems described in the thread and I revert back to DT Open Layers v7.8.2 as you advised.
I attach an m file which illustrates what I am doing and a function file it uses. The programme works perfectly. However, I use daqreset at each run. I cannot afford it in the real application due to time constraints and I use daqreset only at the start up.
When I disable AO in the real application then AI triggering works perfectly. However, when I enable both AO and AI then I have an intermittent problem. Both subsystems trigger sometimes but AI fails to trigger occasionally and I have a massage:
Error in asyncio.Channel/onCustomEvent (line 477)
notify(obj, 'Custom', asyncio.CustomEventInfo(type,data));
Error in asyncio.Channel>@(source,data)obj.onCustomEvent(data.Type,data.Data) (line 409)
@(source, data) obj.onCustomEvent(data.Type, data.Data));
> In asyncio/Channel/onCustomEvent (line 477)
In asyncio.Channel>@(source,data)obj.onCustomEvent(data.Type,data.Data) (line 409)
Warning: Error occurred while executing the listener callback for event DataWritten defined for class asyncio.InputStream:
Error using daq.internal.BaseClass/localizedError (line 157)
Internal Error: Unexpected operation processAcquiredData occurred in state WaitingForHardwareTrigger.
I thought AI triggering failures might be due to a cross-talk between AI and AO trigger inputs and put a hardware buffer between them but it did not help.
Many thanks
Andrei
Datain.m
dtao2.m