LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tips for increasing program speed

I posted a topic a while back on missing data with large array's.  I have a 5 x 25000 size array and when i go to save that array, I had ~.8sec of missing data.  I got some tips on reducing that time and I have it down to .47 sec, but I am looking to reduce it even more.  One thing that I think will help is my datatypes.  I have some dynamic data conversion, but they are automattically being inserted in the program.  How can I eliminate those dynamic data?
 
Thanks,
Travis
0 Kudos
Message 1 of 3
(2,556 Views)
Could you save this as a 7.0 format file?? Try using Tools, Advanced, Profile Vi to show where the time is being wasted.
0 Kudos
Message 2 of 3
(2,535 Views)
It is difficult to start such a project without first learning a few basic LabVIEW skills.
 
 
Please take a few steps back and look at your code:
  • You now save DBL data as I16 binary (Throwing away 75% of all information), then display it as EXT!
  • All your controls (except "stop") are outside the loop, meaning the are never read again once the big while loop starts.
  • There is still no way to tell if signal generation or acquisition starts first.
  • A "collector" with a sample size of 1 seems quite silly. 😮
  • You acquire plain 2D data, fake it into dynamic data, then extract the timing information that was never there to begin with. Then go back and forth between DBL and dynamic data several times before saving. Why?

I would suggest that you look at as many shipping examples as possible to get a better feeling how to do things. Good luck! 🙂

Message Edited by altenbach on 10-13-2006 12:00 PM

0 Kudos
Message 3 of 3
(2,536 Views)