LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xcontrol basic help

Solved!
Go to solution

Hi I am new to xcontrols and trying to figure out how they work, I read a number of forum posts I thought I new how they worked. Clearly I don't.

 

Take a new Xctl

The Facade has a string control and U32 for debuging. The data type is the string. The U32 gets the time the Data Change event fires. In the false case the shift registers are wired straight through.

 

Data Change

 

 

 

 

 

 

I also added a value change event for the string control.

Value Change.png

 test2, the Xctl, is droped on the main VI with this block diagram.

 Value Change.png

The Data Changed event fires on drop. It event fires when ever you open the main VI, but not when the value of the string control is changed. Yet typing stop in the Xctl stops the main VI.

 

What am I missing?

 

Cheers

baldrik

 

 

0 Kudos
Message 1 of 5
(3,300 Views)

I figured out how to get the behaviour I need. I expected LV to fire the data changed event if the appropriate boolean is set. Will firing the event from the facade cause problems? It works in this simple example but anyone know if there will be side effects?

 

fixed.png

0 Kudos
Message 2 of 5
(3,255 Views)
Solution
Accepted by topic author baldrik

You should not run into any issues firing an event from the façade. It looks like your block diagram got cut off a little in the picture, is the event that you are firing a value change to the action cluster?

Brandon L.
Automation Engineer
0 Kudos
Message 3 of 5
(3,234 Views)

I think it would help if you could attach the actual xcontrol project, nicely zipped up.

Just looking at a snippet of the facade is pretty useless, especially since the snipping tool has mutiliated property nodes and such.

0 Kudos
Message 4 of 5
(3,229 Views)

Yes It is value change on the data change in the action cluster.

Everything apears to work fine. Thanks for the reply.

0 Kudos
Message 5 of 5
(3,217 Views)