LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Xcontrol Data Out

I have a complex xcontrol that is meant to control the beginning of test.

 

My problem is that I can't access the data out in the facade after I work on it.  In the attached very simple VI, I create a local variable to read the data that has been writtent to the xcontrol.

 

Instead of giving me the data out, I get data in.  Is there anyway I can access the facade data out?

 

Rgds,

Seán

0 Kudos
Message 1 of 2
(2,802 Views)

Hello Sean,

 

You need to check how a Xcontrol works. I have found those two rich sources on how to properly work with them:

http://www.ni.com/tutorial/3198/en/

 

http://www.vi-tech.nl/public/files/downloads/LVUG2009_XControls.pdf

 

In order to get the data out, you need to inform the xcontrol that you want it out.

 

The Data in and out are control and indicator to interface with the code, but if you want the user to set a value in the front panel, you need a control for that. In the value change of that control you set the data changed to true, and then output the value to Data Out indicator, as shown above:

xcontrol_facade.PNG

 

Once you place the Xcontrol in a VI, whenever you change the value from MyControl, you get the data out.

 

The fixed xcontrol is enclosed.

 

 

Guilherme Correa
Message 2 of 2
(2,726 Views)