04-09-2007 04:38 PM
04-10-2007 12:18 PM
Hello.
Thank you for posting to the NI Discussion Forums.
I have searched for the example that you are referencing and have come across 4 instances of a file with that name on my harddrive that are ANSI C. After searching all of them for GetTerminalNameWithDevPrefix, I have come up dry. So, could you please post where this example resides in your directory structure? This would help me track down this example much faster. I am currently running DAQmx 8.5 (the latest version) so this may explain why I didn't see this function.
That said, are you seeing any unexpected behavior with this function or are you just curious about what this function offers?
Let us know and we will be happy to help you further!
Brian F
Applications Engineer
National Instruments
04-10-2007 02:45 PM
04-10-2007 09:14 PM
04-11-2007 02:17 AM
04-11-2007 01:01 PM
int32 DAQmxGetNthTaskChannel (TaskHandle taskHandle, uInt32 index, char buffer[], int32 bufferSize);
Returns the Nth channel. This function takes the taskHandle, index, and bufferSize you specify and returns the Nth channel.
| Input | ||
| Name | Type | Description |
|---|---|---|
| taskHandle | TaskHandle | The task used in this function. |
| index | uInt32 | The Nth channel you want to return. The index starts at 1. |
| bufferSize | int32 | The size, in bytes, of buffer. If you pass 0, this function returns the number of bytes needed to allocate. |
| Output | ||
| buffer | The Nth channel in the index. If you pass NULL, this function returns the number of bytes needed to allocate. |
| Name | Type | Description |
|---|---|---|
| status | int32 | The error code returned by the function in the event of an error
or warning. A value of 0 indicates success. A negative value indicates an
error. For this function, if you pass NULL for the buffer or 0 for the buffer size, this function returns the number of bytes needed to allocate. |
04-11-2007 03:06 PM