Queue Names

製品と環境

このセクションは、サンプルの作成に使用された製品およびOSを反映します。

以下に示された製品を含め、NIのソフトウェアをダウンロードするには、ni.com/downloadsをご覧ください。

    ソフトウェア

  • LabVIEW

コードとドキュメント

添付

すべてをダウンロード

Overview: This basic example demonstrates how to access the Queue in different loops and subVIs by using the queue name.


Description

Queues are very helpful, particularly in Producer/Consumer architecture. We typically pass the Queue Reference between loops and subVIs in order to access its elements, but you can also just use the queue name. This example shows a queue being accessed in a subVI that is only passed the name of the queue. This could also apply across multiple loops.


Requirements: LabVIEW 2012 (or compatible). Hardware: none.


Steps to Implement or Execute Code: 

1. Press Enqueued Element.
2. Run the VI.
3. See element's queued.


Additional Information or References: 

 

Queue Names FP.png

 

Queue Names sn.png


**This document has been updated to meet the current required format for the NI Code Exchange.**

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com

NIコミュニティのサンプルコード交換のサンプルコードは、MIT Licenseによりライセンス供与されています。