LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Large string array usage speed

I'm using a large (250x17) string array and reading certain items from it to a cluster.

The items taken is maximum 3x20 at one time to the cluster which shows them.

I just have one problem:

To show these 3x20 values in cluster, it takes considerable amount of time (1.8seconds!)

Is there any better way to read from String arrays than just index them?
0 Kudos
Message 1 of 11
(3,946 Views)
Is the string array 2D with 250x17 elements? How long are the strings in each array element?
 
You mention also a cluster, but don't provide any details.
 
Can you show your code?
0 Kudos
Message 2 of 11
(3,934 Views)
0 Kudos
Message 3 of 11
(3,933 Views)
I don't see the "cluster", just tons of value and other property nodes.
 
Some real code would be much more useful than a picture, especially since large parts of the code are outside the image boundary. Where do the arrays of references come from? Is this a subVI
0 Kudos
Message 4 of 11
(3,923 Views)
Array is 2D and reference comes from file.

Cluster has 1+18*3 elements and it comes as a reference from the main VI.
Cluster comes from the upleft (the green wire :))

Only array loading outside image boundary.

I'd have to release the whole code to make it work properly and that is not possible.

But if there isn't anything visible wrong with the code, then I just have come up with something.


Message Edited by Nallez on 04-27-2007 01:12 AM

0 Kudos
Message 5 of 11
(3,922 Views)

We re handling a 2D Str array of Nx40plus size in our project, no problem till date, when converting a to cluster.

Maybe, as Altenbach has mentioned, you need to post the small part of the exact conversion code part (without references, replaced with controls & indicators) to shed more light on the unncessary delay caused by the conversion.

- Partha ( CLD until Oct 2027 🙂 )
Message 6 of 11
(3,904 Views)
Hi Nallez,

one possible reason:
when using property nodes LabView tries to update the corresponding frontpanel. This may take a while when you do this for a whole array of values...
Try the panel property 'Defer panel updates' before and after your massive property node accessing Smiley Wink
Or even better: try to use (much) less property nodes...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 11
(3,902 Views)
Thank you GerdW!


The cluster properynode was the slowing part!

After I toned the property nodes down to 30% of the start, the VI runningtime became under 100ms

Message Edited by Nallez on 04-27-2007 07:33 AM

0 Kudos
Message 8 of 11
(3,896 Views)
Hi Nallez,

one more comment:
you can resize the 'Index array' function to give you more than one output. (See the context help.) This way you can get rid of a large amount of those functions too!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 11
(3,884 Views)
Yes I tried that too beforehand, but it didnt give any positive effect on the performance.
0 Kudos
Message 10 of 11
(3,842 Views)