It is possible to do round robin sampling in one task, but you can only sample 1 point at each interval. To do this sampling 4 points you will have to create 4 separate tasks and start and stop them.
Actually you don't need separate tasks. You can use DAQmx Create Channel to add channels to a task. The channels do not have to be all different. For some reason this only works for me if I wire something to the "name to assign" input.
I was actually mistaken. Check out the example below. You can do this by creating 4 channels for each input. You can place the Create Channels in the order that you want to sample in. Just make sure to name each channel differently.
BTW, the reason that I want to do that is I need to average 4 data points from each channel, and only want to switch the multiplex 4 times instead of 16 times.
Sorry, I forgot you were using LabWindows/CVI and no I only have a LabVIEW example. I attached a screenshot of the example so you can see the programming flow. The flow will be the same for LabWindows/CVI and LabVIEW. In your CVI code you will have 16 total DAQmxCreateAIVoltageChan function calls or 4 for each input. Again, make sure to change the "Name To Assign To Channel" for each function call.