Using Synchronous Display for LabVIEW Controls and IndicatorsPrimary Software: LabVIEW Toolkits>>Test ExecutivePrimary Software Version: 5.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: How does the synchronous display option work for LabVIEW controls and indicators? Does it improve the execution efficiency of LabVIEW? Solution: The synchronous display option is related to multi-threading. Since the user interface (UI) has been separated from the execution of the block diagram, it is no longer mandatory that every data value gets displayed on the front panel. When data is sent to a terminal on the block diagram, an event is put on the user interface queue to update that indicator when the UI thread runs. Since the block diagram keeps executing, and may generate a different data value for that same indicator, before the first was ever updated. If synchronous display is enabled, the block diagram will not overwrite the data for that indicator. The diagram will stop executing until the User Interface has updated that value. For high speed charts, it might not be critical to see every data point, if they are updating faster than the eye can see. Turning synchronous display on is not the same as turning multi-threading off, but it does more closely simulate the way updates were made to the user interface in LabVIEW 4.x and previous versions. In certain Data Acquisition (DAQ) applications under Windows NT, it is necessary to turn synchronous display on in order to see any reasonable response to mouse events, such as clicking the stop button. It seems that the UI thread is not getting scheduled correctly, so we can force it to run by setting synchronous display for some indicator. Related Links: LabVIEW Help: VI Execution Speed LabVIEW Help: Configuring Controls and Indicators Knowledge Base DIRECT-3S8R4F: Why Doesn't My Front Panel Draw all My Data? Attachments:
Report Date: 03/25/1998 Last Updated: 07/13/2007 Document ID: 17OC8QWV |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
