LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

using standard datatypes in NIDAQmx functions

Solved!
Go to solution

I use NIDAQmx 8.6 with LabWindows 7.1. Can I use in NIDAQmx- functions the standard datatypes instead of the NIDAQmx datatypes?

For example 'unsigned char' instead of 'uInt8', 'long' instead of 'TaskHandle'.

I have seen in 'NIDAQmx.h' that NIDAQmx datatypes anyway are derivates from the standard datatypes.

0 Kudos
Message 1 of 3
(3,378 Views)
Solution
Accepted by topic author KJ
Imho you can use the standard types, as long as they are equivalent. The advantage of using the predefined special datatypes as found in DAQ etc is that sometimes such definitions may change (i.e. due to porting from 32 bit to 64 bit applications). In such cases your code may remain untouched, as NI should take care of a suitable, adapted type definition. 
0 Kudos
Message 2 of 3
(3,375 Views)
Note: the data type of TaskHandle changed from 'uInt32' to 'void*' with DAQmx 9.0 (or 9.1? I skipped 9.0).
-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 3 of 3
(3,364 Views)