LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Any way to save data in loop without using shift register or feedback loop

Solved!
Go to solution

Hello all

 

I was thinking, is it possible to save data in a loop to next iteration without the use of a shift register or a feedback loop?

I need the possibility to reload data within a loop from a lvm file, but I want to use the same data until i load some new ones.

 

The reason why I don't want to use the shift register or feedback node is due to speed, even though I am not sure if the shift register

actually moves all the data from one register to another, or if it is stationary until a change in the data occur.

The data I want to reuse is medium-large (6 force measurements, 2 pressure, 1 flow channels)of about 10sec data in each file with samplingsrate of 2kHz..

In my analysis program I have many CPU demanding calculations and 3D graphs, so I just want to minimize the CPU load as much as I can for each part of the

software..

 

I have attached a small VI to explain what I am talking about.

 

I now I shouldn't use the express VI, and I am going to change that as well - this is just a proof of concept! 

 

Hope you guys can help me understand this shift register better...

 

Thanks!

- Tommy 

-----
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
0 Kudos
Message 1 of 4
(3,959 Views)
Solution
Accepted by tombech
If speed is the name of the game, go with the (data)flow and stick to shift registers or the feedback node.  No data is moved around, their job is to do pretty much exactly what you are describing.  Any other solution, controls/locals/globals will involve copying data and then you will have problems with speed.
Message 2 of 4
(3,954 Views)

 


tombech wrote:
[...]The reason why I don't want to use the shift register or feedback node is due to speed[...]

 

 Tommy,

 

shift register are the fastest you can ever get...........

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 4
(3,951 Views)

Hi all!

 

This is why I like this forum - I post a question and less then 10 min later, I get the answer...

 

Great - thanks guys!

 

Have a nice day!!

 

Regards

Tommy

-----
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
Message 4 of 4
(3,944 Views)