10-29-2008 02:32 PM
Hello TKNguyen,
Thanks for your post back and I am sorry to hear that you are still seeing this error. Even at 2 samples per buffer and 1 sample per cycles I still don't see the same error you are seeing. What I would recommend trying is to set the buffer size manually. After the DAQmx configure channel function add the following function:
int32 DAQmxCfgOutputBuffer (TaskHandle taskHandle, uInt32 numSampsPerChan);
Set the buffer size to a larger number than the samples you are actually creating. Also what version of the DAQmx driver are you using? The latest version is DAQmx 8.8 and can be found here. I have not seen this issue before but lets make sure you have the latest version of the driver. Let us know your findings so we can help you resolve this!
Cheers!
Corby_B
http://www.ni.com/support
10-29-2008 07:56 PM
Hi Corby_B,
Thank you for getting back to me.
My application is in CSharp.
What package should I "using" to manipulate this method 'DAQmxCfgOutputBuffer '. (using NationalInstruments.DAQmx.DaqBuffer ?)
Do you have example code in c# to config this output buffer?
I am running DAQmx version V8.8.20.13.
We are running the same Application, using the same model which is 6723, but you can run at higher freq, this is unfair :).
Would my 6723 card got defective? or does it need some kind of on board hardware configuration (jumbers)?
Thanks
10-29-2008 08:14 PM
Hi Corby_B
I have one more thing to ask.
You have NIDAQmx.h and NIDAQmx.lib and this is great for c or c++ application.
Do you have a .dll library which is equivalent to library above?
Thanks
TKNguyen
11-02-2008 09:11 PM
Hello TKNguyen,
Thanks for your post back!
There are not any specific examples for the setting of the buffer because the DAQmx driver handles all of this for you. It is a parameter that you can set before you begin acquiring information in your task. After looking into this a bit more I do not feel that this would solve the issue as it is completely related to the hardware. I would like to ask how old your card is? This could be a simple situation where the card may need to be calibrated. I am also only able to get to 81,000 Hz before I run into the same error that you see. Also the you are right, the .lib and .h files are great for C++ but as for a .dll file of this. I know that there is a way to wrap the DAQmx driver in one but to be honest this might be a great question for the .NET forums as someone may know more than I. Let me know if this helps and I wish you the best on your applications. Some of these links may help as well.
Using Measurement Studio 8.0.0 and Prior in Visual Studio 2005
Data Acquisition in C# .NET Interactive Tutorial Code
Cheers!
Corby_B
http://www.ni.com/support