Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
概要
64bit LabVIEWでwavファイルを再生し、スピーカーから音声出力をします。
詳細
64bit LabVIEWでは、Sound Player.viのサンプルを実行する際、
下記のようにコーデックのエラーが発生し、サンプルが正しく動作しない場合があります。
これはPlay Sound File.viが実行される際に、32bitコーデックを正しく取り扱えていないためと思われます。
この場合、添付のようにPlay Sound File.viを使用するのではなく、
一度wavファイルから波形データを読み取った後、サウンド出力の関数を用いることで、
64bit LabVIEWでもwavファイルから読み取った音声データをスピーカーから出力することが可能です。
実装・実行方法
添付のVIをダウンロード後、wavファイルパスを指定した上で実行してください。
必要なもの
ソフトウェア
LabVIEW 2015 以降
NIコミュニティのサンプルコード交換のサンプルコードは、MIT Licenseによりライセンス供与されています。
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!