Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to achieve desired sample rate?

Quite frankly, your program is pretty poorly written with all of those sequence structures (and even nested sequence structures) so it is to difficult to easilu understand. The acquisition itself will take place in a fraction of a second but in a short while, the use of the shift register and build array will cause memory problems as it needs to constantly reallocate large chunks of memory.
0 Kudos
Message 11 of 13
(830 Views)

Thx for the quick reply  Dennis.

 

I agree with you, it is poorly written, cause it is my first experience with Labview.  So, your suggestions will be very important for me. What can I use instead of sequence structures? Also, is there another way of storing sample data other than building an array?

0 Kudos
Message 12 of 13
(819 Views)
A producer/consumer architecture would work better. With the producer/consumer, you would pass the data to a consumer loop that would writr to a file. No need to accumulate data in a loop. Look at the examples and the templates (File>New...>Design Patterns).
Message Edited by Dennis Knutson on 06-06-2010 02:40 PM
0 Kudos
Message 13 of 13
(815 Views)