キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

xcontrol basic help

解決済み
解決策を見る

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 件の賞賛
メッセージ1/5
3,691件の閲覧回数

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 件の賞賛
メッセージ2/5
3,646件の閲覧回数
解決策
トピック作成者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 件の賞賛
メッセージ3/5
3,625件の閲覧回数

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 件の賞賛
メッセージ4/5
3,620件の閲覧回数

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

Everything apears to work fine. Thanks for the reply.

0 件の賞賛
メッセージ5/5
3,608件の閲覧回数