LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Create Channel vs Pre-defined Tasks

Which is more efficient when sampling a low bandwidth signal ( ie: 1 sample per 100ms )?

Which will execute faster:

1. Create a channel, set the timing, start the task, read the sample and clear the task.
2. Use a named task and merely read the sample.
0 Kudos
Message 1 of 3
(2,788 Views)
Hello Jim,

Actually, the two options you listed should execute in the same amount of time. While they appear slightly differently in LabVIEW, they will compile to the same code. So, at run-time there is no difference between the two. In fact, if you place a DAQmx Task Constant in your LabVIEW Block Diagram you can right-click and select Generate Code»Configuration and Example to automatically generate the associated NI-DAQmx sub-VIs.

For more information about the functionality of NI-DAQmx I would recommend that you check out our Getting Started With NI-DAQmx resource. I hope this information is helpful. Let me know if there's anything else I can do.


Matt Anderson

Hardware Services Marketing Manager
National Instruments
0 Kudos
Message 2 of 3
(2,744 Views)
Thanks Matt! That is the info I was looking for.
0 Kudos
Message 3 of 3
(2,690 Views)