View Single Post
  #8   Spotlight this post!  
Unread 10-02-2011, 14:06
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Sensor Sampling Rates and divagations

If you are looking to avoid resizing, you can use the init or reshape array blocks to allocate in advance, and then use array replace to update a particular element. LV has some features for bounded and fixed size arrays, but honestly, I've never had much luck using them.

The other approach is to not use arrays as much. The signal processing palette has a point-by-point filter, and the chart has an internal circular buffer, so you can then wire a single point and any storage is private to those areas that need it.

Greg McKaskle
Reply With Quote