01-28-2008 09:40 PM
01-29-2008 01:43 PM
Hi,
My first advice would be to try one of our analog generation examples, so no synchronization and make sure you are getting the correct output. You can also try generating a DC voltage from MAX. What do you read if you connect the DMM just to the 9263, making just a analog generation with no synchronization?
I have been able to run the same example in LabVIEW with the same setup you have, and it ran perfectly. The test I made was connecting the analog output 9263 directly to the 9215 analog measurement and I was able to read exactly what I was generating. I was also able to do the same setup with c# in .NET.
Let me know if you can run this test by reading the output from the 9263. If you do, then your issue is with your DMM.
I hope it helps
01-29-2008 09:56 PM
01-30-2008 12:32 PM
Hi
I’m going to point you to some resources but at the end data is move from onboard memory to RAM (application memory) and from RAM to disk. DAQmx driver controls the memory handle between the chassis and memory RAM.
Take a look at these documents: How Is the DAQmx Buffer Size Allocated for a Finite or Continuous Acquisition? and Read All Available Samples Function Does Not Return All of the Samples for a USB Device.
The code that I ran was in continuous acquisition mode and memory was been handle by the drivers and the development program in this case either LabVIEW, c++, c#. Why do you need to know how memory is been handle?
I hope it helps
01-30-2008 07:14 PM
02-18-2008 04:15 AM
02-19-2008 09:38 AM
Hi
The basics are the same for VC++ and for LabVIEW. The way DAQmx handles the buffer is the same for any development environment chosen. A good point to remember is that the buffer size cannot be change while the task is running so the only management you can do is set the buffer to the right size buffer you start your task.
The right size is going to be the enough amount of memory to hold the samples while you are doing processing on the signal. But if you can take the data fast enough from the buffer you might not even need to change this property. You can set the input buffer size by: Using the DAQmx Configure Input Buffer VI in the DAQmx LabVIEW API, Using the DAQmxCfgOutputBuffer function in the DAQmx C API or Setting the Task.Stream.Buffer.InputBufferSize property in the DAQmx .NET API .
Since you told me you are new to DAQmx here are a couple of beginner’s articles we have: Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications, Answers to Frequently Asked Questions about NI-DAQmx and Traditional NI-DAQ (Legacy) and Using NI-DAQmx in Text Based Programming Environments. Although most of the articles are written for a LabVIEW audience the theory is always the same.
I hope it helps
02-21-2008 04:13 AM