04-04-2017 10:58 PM
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??
04-04-2017 11:42 PM
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.
04-06-2017 01:27 AM
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'?
04-06-2017 02:04 AM
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).