Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Initialization takes too long

Using Borland C++ Version 5 and NIDAQmx.h

I have created two tasks. The first one is taking 3500 ms (3.5 seconds) to create. The second takes 200ms.
My tasks work, and I can do input/output but 4 seconds for setup is wrong.

My abbreviated code is:
result=DAQmxCreateTask("TaskOne",taskhandle);

I cannot find other initialization routines that may be needed. Are there any?? My reference material is the "NI-DAQmx C Reference Help"
0 Kudos
Message 1 of 3
(3,395 Views)

Dear Shadedmj,

Are you using the correct import libraries? The KnowledgeBase "How Can I Use The NI-DAQmx ANSI C Function Library With Borland C and Delphi?" has the correct libraries. What operating system and version of DAQmx are you using? Which DAQ board are you using? Have a great day!

Sincerely,
Marni S.

0 Kudos
Message 2 of 3
(3,371 Views)
My issue has been resolved by several emails today.  The technician at NI has said that according to my (older) hardware specs this is normal.

The first call to DAQmxCreateTask allocates far more resources than I expected.  The technician has said that the first call to DAQmxCreateTask takes 160ms on his 3GHz computer.

Personally, I find that 160ms on a even a 3GHz computer to be intolerable.  I will find someway to break the news to my customer for find a way to hide this delay.



0 Kudos
Message 3 of 3
(3,366 Views)