Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

"Buffer is too small to fit the string" Error Number: -200228. I cannot find any information on this error. Can someone provide some documenation or a more verbose description?

I have searched the knowledge base and DAQmx C Reference guide high and low for any information on this error.   Where can i find more information?
 
Regards,
Gerry
0 Kudos
Message 1 of 5
(8,252 Views)
Hi Gerry,

I agree with you that this is a fairly short error message. However it is telling us that the length of the string being passed is larger than the size specified in the function. This can error can probably be corrected by increasing the size of the variable.I was wondering if you could give a little more information about the function you are trying to call when this error occurs.

Regards,
Kent
Applications Engineer
0 Kudos
Message 2 of 5
(8,232 Views)
Unfortunately, i don't know which function is returning this error message.   I have a generic error catch routine, which i obviously need to make more specific, and in the function where this error occurs i have several NIDAQmx function calls.   I was hoping by finding more description on this error message it might help me determine which function was returning the error. 
 
Here are some of the functions I call:
 
DAQmxCreateAOVoltageChan
DAQmxCfgSampClkTiming
DAQmxSetWriteRegenMode
DAQmxWriteAnalogF64
 
 
The main problem is that i support the application in question and a remote user is having the issue.  I cannot repeat it on my station. 
 
Regards,
Gerry
0 Kudos
Message 3 of 5
(8,222 Views)
Hi Gerry,

I would recommend looking for a function which is receiving a string. This may one of the "get" functions which returns the names of tasks, devices, etc. Once the function is found, it should be easy to increase the size of the buffer which is allocated for the string.

Regards,
Kent
Applications Engineer
0 Kudos
Message 4 of 5
(8,204 Views)

I ended up finding the function.  It was DAQmxGetSysDevNames, and my issue was that on my bench i only had two NIDAQ cards in my machine but another had more which overflowed the buffer. 

Thanks for the help!

Regards,

Gerry

0 Kudos
Message 5 of 5
(8,113 Views)