View Single Post
  #9   Spotlight this post!  
Unread 10-02-2011, 17:38
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Re: Sensor Sampling Rates and divagations

Quote:
Originally Posted by Greg McKaskle View Post
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
I just switched to a point-by-point filter and eliminated all arrays. It's clearly way lighter, I could implement a 5th order at 1kHz with no lag.

Sorry to insist, but have I understood correctly that there's no way to get a microsecond timer in my OS (win7 64)?
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote