From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

maximum number of characters in a traditional Ni-DAQ virtual channel and in a NIDAQmx task channel name

What are the maximum number of characters in a traditional NI-DAQ virtual
channel and in a NI-DAQmx task channel name. NI-DAQmx doesn't provide an
warning if the number of characters is exceeded; it crashes instead. Is
this a buffer overflow? I tried counting them but the number is large
enough for this method to be very time consuming and error prone. I'm
trying to customer-proof an application.

Duncan
0 Kudos
Message 1 of 3
(2,584 Views)
Duncan,

This issue has been reported and our developers are looking into the crash. We hope this will be corrected in a future release of the driver. The fundamental limit on a task name is 64 characters, even though you may not be seeing a crash until more characters that this are used.

If you wish to restrict the limit for your customers, I would use 64.

Regards,
Justin Britten

Applications Engineer
National Instruments
Message 2 of 3
(2,584 Views)
Thanks. I'll use 64 as a limit.
Duncan
0 Kudos
Message 3 of 3
(2,584 Views)