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 “run” or “deploy” to execute your program on the target.
    Use the “build” command and then manually download the *.dxe file to the target using VisualDSP

application programming

  • Use a single loop approach wherever possible.
    Parallel loops are suitable only for loop times > 200ms and they introduce timing jitter of 50..150ms.
  • 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

 
labview_embedded_programming_style_guide.txt · Last modified: 2017/11/07 22:26 by 127.0.0.1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki