LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I assign device IDs to a movie subVI?

 I have used two speakers for a computer. In the past, I was able to assign device IDs to a sound subVIs to separately generate sound by each speakers.

 But now, I couldn't find any way to assign device IDs to movie subVI. The sound of movie subVI just sounds from only one speaker.

 I think assignment of device IDs would solve this problem. So, how can I assign device IDs to the movie subVI? or are there any other solutions??

0 Kudos
Message 1 of 4
(2,742 Views)

Have you checked to make sure both speakers work?  Just making sure the obvious stuff is taken care of.  🙂

 

If you want more help, you should upload your code (the VI, not a picture) so we can get an idea of what you are even talking about.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 4
(2,719 Views)

Thank you for your answer.

 

I already checked the both speakers and it was all right. 

 

Then, here is my codes.

 

'Play movie file' is the VI for playing movie files. When I put a path of movie file in the code, it simply play that file.

But, in this code, I couldn't select a speaker that I will use. It just used only one speaker, and I couldn't used the other one.

(I want that the 'A' speaker will activate when 'A' sensor is operating, and the 'B' speaker will activate when 'B' sensor is operating.)

 

'Sound generator' is the VI for generating specific frequency sound. In this code, I can select a speaker that I want to use by assigning 'Device ID'. When I put the value '0' in the device ID, the sound is generating from speaker 'A', and when it is '1', the sound is generating from speaker 'B'.

 

To sum up, how can I create the code 'device ID' that already is in the 'Sound generator' to 'Play movie file'?

 

 

 

Download All
0 Kudos
Message 3 of 4
(2,678 Views)

To create stereo sound, you would typically use one device ID, but use an array of two waveforms wired to the sound output, one for each channel (or stereo speaker). Simply change the relative amplitude to hear one or the other speaker.

 

Please tell us exactly how your hardware is setup. Are you using two sound cards? 

 

You might also rethink your code. For example the case structure inside your sound generator is just plain silly (see also).

0 Kudos
Message 4 of 4
(2,672 Views)