LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

optimization code memory

Solved!
Go to solution

hello,

Any suggestion or idea to optimize this portion of code

thanks

0 Kudos
Message 1 of 7
(2,402 Views)

What is it even trying to do?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(2,391 Views)

hello Crossrulz,

Sampling a signal (20ms)

thanks

0 Kudos
Message 3 of 7
(2,382 Views)

What are you trying to optimize for?

Speed?

Memory footprint?

Low jitter in RT?

Readability?

Some other thing?

 

Since there don't seem to be any controls or inputs this will always generate exactly the same thing. Perhaps you could run it once and pass the output to wherever you need it. 

—Ben
Prevent your computer from sleeping programmatically!
Use Power Requests
Download from GitHub

0 Kudos
Message 4 of 7
(2,302 Views)

Hello,

I use this code in RT. the memory increase if the signal is big.

  - 60s ==> table of 3000points.

  -10 min ==>  table of 30000 points

   

0 Kudos
Message 5 of 7
(2,262 Views)

@RchB wrote:

Hello,

I use this code in RT. the memory increase if the signal is big.

  - 60s ==> table of 3000points.

  -10 min ==>  table of 30000 points

   


With a predefined array size shouldn't change if you're using Replace Array Subset. If you're using Insert Into Array it's quite logical that 10 mins results in 10x the size of 1 min ...

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 7
(2,249 Views)
Solution
Accepted by topic author RchB

my colleague propose me this and i fixe array size

 

Message 7 of 7
(2,240 Views)