07-05-2017 10:55 AM
07-05-2017 11:13 AM - edited 07-05-2017 11:19 AM
User events.
07-05-2017 11:28 AM
I also use User Events. When combined with an Action Engine, it becomes very simple.
07-05-2017 11:34 AM
@0Forest0 wrote:
Hi to all.
I have a question: how to pass variable to another panel?
I know 3 ways to do that.
What is your definition of "variable" "pass" and "another panel". All the code you show acts on the same panel and the high CPU is probably due to the greedy loops.
Please explain in detail what you want to to and attach some actual code that demonstrates the question.
07-06-2017 12:37 PM
I have a indexes or labels of indicators on a few panels. If I want to pass a parameter on some indicator, i just write an index or label in option of the parameter. It is very flexible way if parameters will changes frequently. So, I need a fast way to pass parameter to indicator on other panel.
Sorry for weak English.
07-06-2017 12:42 PM
@0Forest0 wrote:
I have a indexes or labels of indicators on a few panels. If I want to pass a parameter on some indicator, i just write an index or label in option of the parameter. It is very flexible way if parameters will changes frequently. So, I need a fast way to pass parameter to indicator on other panel.
I still have absolutely no idea what you are talking about. 😞
07-06-2017 12:58 PM
@crossrulz wrote:
I also use User Events. When combined with an Action Engine, it becomes very simple.
Being a fairly recent convert to using User Events, I'm not very adept at using them. But I keep plugging away, because there is such potential for me to tap.
07-07-2017 11:35 AM - edited 07-07-2017 11:36 AM
Thank you for that solushion.I did try that. But user event have a queve. And under certain conditions (like stop and run target VI with indicators) information on the indicators will be lag behind.
07-07-2017 11:48 AM
I've found user events to be the most versatile and fastest to respond for transmitting data. Many of the LabVIEW frameworks lean heavily on their usage. If you are having issues with lag I would expect the design around the Event structure to be the problem unless you are really hammering that VI with TONS of user events and that doesn't seem likely in this instance. Do you have an example where you indicators are lagging on the display VI using user events?
07-10-2017 12:10 PM
Hi. I make the example VIs.
Run the "1.vi"
stop and run the "2.vi'
and you'll see the difference between indicators "N1" and "N2".