<< Click to Display Table of Contents >> Navigation: NmxDLL Referenz > API (programming interface) > Get device information > NMX_GetChannelCount_1 |
This function is used to read the number of measurement channels and the number of digital in-/outputs, which the device has.
Definition
NMX_STATUS NMX_GetChannelCount_1(
NMX_PHANDLE pHandle,
unsigned long* pulChannelCount,
unsigned long* pulNDigitalInputBytes,
unsigned long* pulNDigitalOutputBytes);
Parameter
pHandle
pulChannelCount
Number of measurement channels, which the system has.
pulNDigitalInputBytes
Number of digital input bytes, which the system has.
(= Number of digital inputs / 8)
pulNDigitalOutputBytes
Number of digital output bytes, which the system has.
(= Number of digital outputs / 8)
Typical function call (C example)
NMX_GetChannelCount_1(pHandle, &ulChannelCount, &ulNDigiInBytes, &ulNDigiOutBytes);
.Net DLL specific implementation
NMX_MSTATUS GetChannelCount_1(
System::IntPtr pHandle,
System::UInt32 %pulChannelCount,
System::UInt32 %pulNDigitalInputBytes,
System::UInt32 %pulNDigitalOutputBytes);
Comments
The function only returns values, if the function return code is NST_SUCCESS. Otherwise the values remain unchanged.