07-23-2015 04:11 PM
They are the same data type: voltage, and are on the same board with same max and min values etc. How much of a time overhead do these tasks generally incur?
Thanks
Aditi
07-23-2015 05:46 PM
07-23-2015 06:23 PM
07-23-2015 06:55 PM
@IUCHEM wrote:
I have previously used created and run two tasks at the same time but I realize now that they were probably not running "simultaneously". However My program seemed to work oK. Do you think this was because the timescales that I was updating the measurements were in 100s of milliseconds and the time that was spent switching between tasks was too small to notice?
1 Sample On Demand? That would probably work. But I would say you just got lucky. You would be much better off using a single task to read both channels. It is just more efficient in many ways.