LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Performance of shared variables

Hi,

 

In my application, I have to send a number of variables from a cRIO to my host.

The values are all integers.

What is the difference in performance between these two approaches:

Using a lot of scalar integer shared variables

Using a shared variable that holds an array and send all my values through this array.

 

I have not found any information which one is the better solution.

Thank you.

 

Christian

0 Kudos
Message 1 of 3
(2,310 Views)

Hi Christian,

 

you can go both ways without a big difference in performance. I would personally prefer an array because you have one variable that you can work with which makes the diagram more readable.

There is a benchmark in this article that shows memory usage with different data types. They are all about the same.

I suppose that the variations in speed will be similar to that.

Hope this helps,

 

David

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

Hi, 

thx a lot, this is important information, so I have to check other parts of my VI that may produce performance issues 🙂

 

Christian

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