LabVIEW copy function of conditional structure and event structure

Publisher:chwwdchLatest update time:2015-10-22 Source: eefocusKeywords:labview Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
When writing a medium-sized program, state machines and event structures are common design patterns. SR (SHIFT REGISTER) is often used to transfer data between various cases. When there are many cases, it is often the case that SR is forgotten to be connected or a new SR needs to be added. This is very troublesome and requires switching between dozens of cases and rewiring.

LV's case structure and event structure have a very important function "case or event copy function". With this function, the above problem can be easily solved.

When designing a program , some SRs must be reserved. When not in use, set them to BOOLEAN type, which will not take up a lot of memory space.
For conditional judgment, SR can be set to BOOLEAN ARRAY, so that an SR can represent the state of multiple bits, which is equivalent to the M intermediate relay of PLC.

For common structures, they should be stored as templates (.VIT). The following is a template for a continuous single loop. Taking


the case structure as an example (the event structure method is the same)


, all SRs can be automatically connected by copying. When using the state machine, a "BLANK" is often designed. Blank CASE, this CASE does not perform any actual operation, the only function is to be a copied CASE, the proper use of the copy function can greatly improve programming efficiency. 
Keywords:labview Reference address:LabVIEW copy function of conditional structure and event structure

Previous article:LabVIEW Serial Port Debugging Notes
Next article:Converting strings to ASCII in LabVIEW

Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号