07-03-2012 09:16 AM
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.
I also added a value change event for the string control.
test2, the Xctl, is droped on the main VI with this block diagram.
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
Solved! Go to Solution.
07-03-2012 07:55 PM
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?
07-06-2012 04:22 PM
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?
07-06-2012 05:09 PM
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.
07-08-2012 07:55 AM
Yes It is value change on the data change in the action cluster.
Everything apears to work fine. Thanks for the reply.