LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I write it using the AMC framework

How can I write it using the AMC framework

0 Kudos
Message 1 of 4
(85 Views)

AMC can have many meanings, so please provide more details.

0 Kudos
Message 2 of 4
(84 Views)

Use a queue.,Currently, vi is written in a sequential structure, which is too lengthy. I want to optimize it and implement it with a queue

0 Kudos
Message 3 of 4
(73 Views)

Your code is almost impossible to read (and not just because you are using a character set that does not use the ASCII encoding).  Here are some suggestions to improve your LabVIEW "style" --

  • (Almost) Always use the 4-2-2-4 Front Panel pattern (which you do!).  Wire Error In to the lower left, Error Out to the lower right.
  • Never use the "default Icon" when creating a sub-VI.  Instead, use the Icon Editor to create an Icon that describes the VI.  It could be as simple as a White Square with a Black Border in which you write three (short) lines of text, "Init Flow Params" or "Stop Flow".
  • Avoid Sequence Structures.  Instead, use the Error Line to control the sequence by attaching Error Out from first VI to Error In of second.
  • When you have a series of VI's that "do one thing" (such as "Set Up A/D"), write a sub-VI (called "Set Up A-to-D") and put the lower-level VIs "inside".  Be sure to use the 4-2-2-4 pattern with Error In and Error Out, and make the VI's Icon describe what it does ("Set Up A/D").

Bob Schor

0 Kudos
Message 4 of 4
(22 Views)