05-16-2008 05:04 PM
05-19-2008 03:33 PM
05-19-2008 04:25 PM
Hi Mike,
The issue you are experiencing is a limitation based on the memory used to perform the read command. The continuous read involves making multiple read calls from software and there is an associated memory allocation based on amount of data to be read. The driver makes an adjustment to the sample rate based on the current available memory and the amount of data. If you set your system up for a finite measurement, you avoid the need for multiple reads and you can achieve a much higher sampling rate. You can increase your continuous sampling rate by changing the data type to Raw I16 instead of a double which will allow 4 samples to fit in the same memory space. You would have to do some post processing of the data to get it into the same format. Please refer to this knowledgebase article for additional information.
Maximum Analog Input Transfer Rate From PCMCIA Card to the PDA Buffer
http://digital.ni.com/public.nsf/allkb/29C5C53D83A9F91786256F43006ECAE2?OpenDocument
You can also refer to the NI-DAQmx Base Readme for more information about the functionality when it is used with a PDA. You can also take a look at moving your VI to the PDA by selcting the Generate Serial Only in the application builder in order to minimize the memory that is needed on the PDA as recommended in the Readme file.
NI-DAQmx Base 2.2 - Windows 2000/Vista x64/Vista x86/XP
http://joule.ni.com/nidu/cds/view/p/id/424/lang/en
As far as post processing and logging your data, I would recommend you take advantage of the producer consumer loop architecture. You can find a template for this by selecting File>>New>>VI>>From Template>>Frameworks>>Design Patterns>>Producer/Consumer Design Pattern (Data). You can use the producer loop to Read your measurements and you can use the consumer loop for the post processing and logging. The producer loop is able to run without any post processing delay. This example makes use of queueing to pass data between the loops. You can refer to this Developer Zone Article for additional information.
Application Design Patterns: Producer/Consumer
http://zone.ni.com/devzone/cda/tut/p/id/3023#toc2
05-19-2008 11:03 PM
05-22-2008 06:18 PM
05-22-2008 10:25 PM
05-23-2008 05:07 PM
Hi Mike,
I'm sorry for posting the VI that was saved in LabVIEW 8.5, here is the version for 8.2. Give this a try and see if you are able to find any improvement by changing you samples to read. I was also able to verify that the generate serial only option will completely iterate a loop and then completely iterate the other loop when they are in parallel in LabVIEW. The limitations of the continuous analog input are due to the interrupt data transfer and the ability of the PDA to acknowledge the interrupt. Let me know what you are able to determine with this VI.