10-27-2016 12:12 PM - edited 10-27-2016 12:16 PM
Hopefully this is the appropriate forum. I'm trying to sample data from an angular encoder and photoswitch on a 9361 module. When I run the sub-VI (RR velocity+slip tasks) that creates and configures the tasks there are no issues but when I try to run it in my larger program I get the dreaded error -50103. I've tried un-reserving the one task before starting the other but that only seems to work the first time the program executes. I've reviewed this knowledgebase article and believe I'm not running into those issues unless I'm missing some sort of implicit overlap in devices or routes.
Snippet and VIs attached. The "counters+loop" VI is a simplified top-level VI where I can get the error to occur. I'd greatly appreciate anyone being able to point out my stupidity.
Solved! Go to Solution.
10-28-2016 05:46 PM
Hi Johnnyfear,
I think your resource conflict is occuring around sample clocks. You have defined two tasks to refernce the same /RR_cDAQ/di/SampleClock, but with different timing parameters. The first task called, in this case "Velocity" will reserve this sample clock. It can still be used down the pipeline in other tasks; however, they have to have the same timing configurations. You can test if this is the issue by sharing the timing source between the two tasks without changing the timing paramenters. You can use the DAQmx Timing property node as a read to get the "Velocity" task's timing source.
I hope this helps!
11-09-2016 08:51 AM - edited 11-09-2016 08:57 AM
Thanks for the help, Letitsnow, and sorry for the slow reply (poorly-timed vacation). Turns out the 9361 can only run one task at a time (source), so I'm working on whether to combine channels in one task and downsample later or expand my chassis and add a 9401.