09-05-2013 03:10 PM
Hello,
I am discovering DAQmx with the goal of controling a NI 9264 module in VBA
For now I am reading the supported properties for my device but I find the help really minimalist
for example, the function DAQmxGetDevChassisModuleDevNames is described as "Indicates an array containing the names of the modules in the chassis"
and the variable are described here: DAQmxGetDevChassisModuleDevNames(const char device[], char *data, uInt32 bufferSize)
But what I am supposed to give as const char device[], char *data and uInt32 bufferSize ? is there a more detailed help to know what the different functions take as input ?
thank you in advance
best
Fabian
09-06-2013 08:12 PM
Hello Fabian,
Was the help information you were refering to?
http://zone.ni.com/reference/en-XX/help/370471W-01/mxcprop/func29b6/
http://zone.ni.com/reference/en-XX/help/370471W-01/mxcprop/attr29b6/
For the const char device [], you would supply the name of the chassis as it appears in NI MAX. The input char*data is just a pointer to the array of characters that you want the module names to be placed ( you specify this variable). The ulnt32 bufferSize is a variable or number that you supply which sets the size, in bytes, of the buffer passed in ModuleDevNames. If you pass 0, this function returns the number of bytes you need to allocate.