[转]Using Events with Latched Boolean Controls

http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/latchbooleanevent/

 

 

Using Events with Latched Boolean Controls

LabVIEW 2010 Help
Edition Date: June 2010
Part Number: 371361G-01

When you trigger an event on a Boolean control configured with a latching mechanical action, the Boolean control does not reset to its default value until the block diagram reads the terminal on the Boolean control. You must read the terminal inside the event case for the mechanical action to work correctly. As a reminder, a note appears in the Edit Eventsdialog box when you configure a Value Change event on a latched Boolean control.

When you perform an undo operation on a Boolean control configured with a latching mechanical action, the Event structure handles the undo operation as a value change event, which might return unexpected results. You must use a Case structure within the event case for the undo operation to work correctly. Use the TRUE case of the Case structure to specify how you want to handle the Boolean control and the FALSE case to specify how you want to handle the undo operation.

Refer to the Handling a Latched Stop Boolean Control in an Event Structure caveat for information about how to handle a latched stop Boolean control.

Advertisements
  1. 留下评论

Log in or fill out contact info to leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: