This is an old revision of the document!
LV Embedded Programming Style Guide
A Programming Style Guide for LabVIEW Embedded and ZBrain SDK.
general design approach
Only do small development steps at a time!
Remember, while working in FDM mode the code is executed on the PC and not on the target. Timing is different and VIs might execute different.
For this reason its absolutely crucial that only small pieces of code are developed in FDM mode, then compiled and tested in real time on the target
DO NOT use the LabVIEW “deploy” or “run” button to execute your program on the target. Use “build” and then download the *.dxe file using VisualDSP
application programming
Use a single loop approach if possible. Parallel loops are only usable for loop times > 200ms. Parallel code introduces timing jitter of 50..200ms.
Do NOT use timed loops, use while loops instead
Do NOT use local variables
REMOVE all unnecessary frontpanel controls and indicators
Do NOT change the default compiler settings (e.g. code optimization)
Open all hardware references (e.g. “open dout”) at program start
Use only basic VIs, Express VIs etc. don't work
programming style guides for LabVIEW Embeded applications