Hi,
I am rewriting existing NI-DAQ VB6 code that was written for the NI-6062E to VB6 DAQmx code for the NI USB-6212. In my legacy NI-DAQ VB6 code (written for the 6062E) I was successfully generating a 1.2kHz square wave. However, when trying to generate the same square wave using NI Measurement & Automation Explorer and the NI USB-6212, I consistently receive the following error message: Onboard device memory underflow. Because of system and/or bus-bandwidth limitations, the driver could not write data to the device fast enough to keep up with the device output rate. Below is a screenshot of the error.
I've tried a variety of combinations for the "Samples to Write" and "Rate (Hz)" parameters such that the resulting waveform would still be at 1.2kHz but I consistently receive this same error. Based on my research, it seems like my computer is unable to write to the NI-USB 6212 the necessary samples at a rate quick enough for the NI-USB 6212's buffer to not become empty. However, when I run the "ContGenVoltWfmIntClk" example provided by NI, I observe the 1.2kHz square wave on my oscilloscope when using the following parameters.
Is the reason for the difference in behavior between each program due to additional overhead associated with attempting to generate the waveform by running NI Measurement & Automation Explorer? If not, what are other potential causes for the behavior observed above?
Thanks,
Scott