05-17-2022 01:52 PM
I'm currently trying to write analog multisample output with an internal clock to a PFI line. I also want to output digital triggers that are synched with the analog output. (a digital trigger every time I output an analog sample. Unfortunately I want to output the triggers to a PFI line and trying to use the same internal clock gets me the error ("selected lines do not support buffered operations") which makes sense since PFI lines do not support hardware timing. Does anyone have any ideas on how to accomplish this? I have been looking into counters and I'm using dotnet C#.
Thanks in advance!
05-17-2022 08:42 PM
It's often possible to accomplish such sync, depending on the device in use. What DAQ device are you using?
-Kevin P
05-18-2022 01:52 PM
I am using an x series board. I have it working at the moment by setting up a counter output channel and setting the output terminal to be the digital output port/line. I then set the clock source for the analog output as the counter output. Does that make sense and do you have any suggestions? Thanks.
05-18-2022 02:11 PM
Sounds exactly right to use the counter pulse train output as the AO task's sample clock. Just make sure you start the AO task *before* starting the CTR task.
-Kevin P
05-18-2022 05:12 PM
Thanks!