LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event applied to control references

Hello!
I built a VI that can run on its own or controlled by a superordinated VI. If there are valid references comming into the subordinated Vi these are used exclusivly, otherwise references to the controls of the superordinated VI are used.
So inside my program I exclusivly use references and property nodes to access or change data.
My first question is if you think that is a bad solution concerning the performance of the VI and if you have any improvements?

The next problem is that my VI is quit slow now (there is a while loop checking all the time if there are changes made to the controls (via their references) and acquiring data (using RS232) and updating controls. Thereby I use a 20 frames long sequence inside the loop.
Is that the reason for slow performence?

To speed things up I considered to us an event structure instead of the sequence to check the changes and only to do the acquisition every cycle.
But I don't see a possibility to use the event structure to check events on value changes of controls via their references.

Any idea?
Thank you,
Alexandra
0 Kudos
Message 1 of 2
(2,598 Views)
> But I don't see a possibility to use the event structure to check
> events on value changes of controls via their references.
>

With LV7, it is possible to use an event structure on control references
to another panel. As for whether this is the reason for performance
problems, that is hard to say without seeing your application.

First suggestion is to use the profiler. Tools>Advancec>Profile VIs.
It should help you start looking in the right place and run informed
experiments.

Another way of doing this is to send it to gam@ni.com and let me use it
as part of the VI critique going on at NIWeek. We will keep the names
anonymous and find the best technique we can for the problem you are
trying to solve. This offer goes for anyone with a VI t
hat they'd like
to see NI try to improve upon.

Greg McKaskle
Message 2 of 2
(2,598 Views)