LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip to the beginning of an audio file when condition is true in labview?

I'm trying to make a Laser Light Harp controlled via an Arduino communicating to a Labview program that plays the corresponding .wav files for each string that is plucked on the harp! I've already been successful in interfacing my Arduino to Labview and playing audio files ! BUT to simulate a real harp my  labview vi needs to have a "Skip to the Beggining" or "Replay" functionality for each audio file so that if a condition is true it doesn't continue to play the entire length of the audio file instead skips to the beginning of the file and starts playing once again from the beginning! 

 

 

I'm new to Labview and its functionalities so please be as descriptive as possible and please reply as soon as possible ,I have my event in 3 days from now! Thankyou!

0 Kudos
Message 1 of 2
(1,985 Views)

I assume you're using Play sound file, which sends out a task-id. You should be able to use Stop sound on this task and start another play.

/Y

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 2
(1,954 Views)