LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass variable to another panel

Hi to all.

I have a question: how to pass variable to another panel?

I know 3 ways to do that.

Unnamed.GIF

1. Is too slow

2. is faster, but unstable speed and period

3. is hard to make changes.

 

Maybe there is another way to do that?

 

0 Kudos
Message 1 of 12
(4,790 Views)

User events.

Example_VI_BD.png

aputman
0 Kudos
Message 2 of 12
(4,783 Views)

I also use User Events.  When combined with an Action Engine, it becomes very simple.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 12
(4,772 Views)

@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.

0 Kudos
Message 4 of 12
(4,768 Views)

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.

0 Kudos
Message 5 of 12
(4,735 Views)

@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. 😞

Message 6 of 12
(4,733 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 12
(4,729 Views)

Thank you for that solushion.
Example_VI_BD.pngI 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.

0 Kudos
Message 8 of 12
(4,714 Views)

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?

0 Kudos
Message 9 of 12
(4,709 Views)

Hi. I make the example VIs.

Run the "1.vi"

1.GIF

stop and run the "2.vi'

2.GIF

and you'll see the difference between indicators "N1" and "N2".

Download All
0 Kudos
Message 10 of 12
(4,690 Views)