|
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.
|