View Single Post
  #7   Spotlight this post!  
Unread 23-02-2010, 11:08
jerry w's Avatar
jerry w jerry w is offline
Free Agent Mentor
no team (Team Krunch)
Team Role: Engineer
 
Join Date: Nov 2003
Rookie Year: 2002
Location: dunedin fl
Posts: 113
jerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud of
Re: LabView open PWM HELP

Diagram disable
Programmers can temporarily remove code from a LabView VI. Placing the diagram-disable structure around the code will cause it to be "Commented-out".
Flipping the structure to its "enable" side will also allow the programmer to add new code as a temporary replacement for that removed. However, the real-time system has a problem with this structure. I discovered on a PXI chassis two years ago that the disable-structure does not work if it contains a front-panel item.
For example a boolean control on the front panel shows as a variable on the diagram. We accidentally included this variable in the disable-structure.
We then added new code that did not use this control. When running the code, the observed results of this VI were very strange. Data was not following the coded instructions of either the "enabled" or the "disabled" code. In addition, when we changed the enabled version slightly, the output changed in unexpected ways.
The workaround here is to use caution. Never include a front panel control inside the diagram-disable structure.

jerry
__________________
Happiest when people tell the truth... However, I am blessed with many friends.