02-04-2017 07:06 AM
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
02-06-2017 05:16 AM
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:
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.