Beruflich Dokumente
Kultur Dokumente
Darren Nattinger
Senior Software Engineer, CLA, LabVIEW R&D
ni.com
Outline
Main VI organization
Project organization
Messaging API
User Event - Stop
Error Handling
ni.com
ni.com
Single Loop
Sequential Operations
Communication between
iterations via state enum
Good for applications that
do not require parallel
execution of tasks
ni.com
Multiple Loops
Parallel Operations
Communication between
iterations via queue
Good for applications that
execute multiple tasks in
parallel
Actor Framework
ni.com
Error
Handlers
EHL
MHL
Loop
Data
Message Queue
ni.com
ni.com
ni.com
Note:
Note This VI is polymorphic in LabVIEW 2013, accepting a single
message or an array of messages.
ni.com
String-based Message
Enum-based Message
ni.com
10
ni.com
11
Rejected Alternatives
Adding a timeout case that polls a local/global variable turns the
event structure into a polling loop
Adding a Value(Signaling) property call to fire the Stop Button (or a
hidden button) event results in a clunky UI
ni.com
12
LabVIEW 2013
ni.com
13
ni.com
14
UI Message
Loop
Acquisition
Loop
ni.com
Logging
Loop
15
ni.com
16
ni.com
Error logging
Error classification (ignore, log only, non critical, critical)
17
Questions?
ni.com
18
19