LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stereo sound generation in LabView 8

Hi,

I'm upgrading the code written in Labview 7 to 8.
In version 7, SOwrite vi took 2D array for stereo output but it's not the case anymore. Now, it takes signal waveform and sound data is 1D array. I want to generate two different tones into each channel. How can I do this?
Thanks.


Message Edited by dlee27 on 08-19-2006 11:55 AM

0 Kudos
Message 1 of 13
(5,496 Views)
Just wire an array of two waveforms to "sound output write" 😄
0 Kudos
Message 2 of 13
(5,489 Views)
Why didn't I try that? Stupid me.
Thank you.
0 Kudos
Message 3 of 13
(5,456 Views)
Hi,

I'm rather new to LabView and I have a similar problem. I want to generate two different sounds in each channel, but I wasn't able to get the above method to work for me. What I basically want is that when I wear headphones and run the VI, I should hear continuous clicks in one ear and masking noise (white noise) in the other. I've got the waveforms done, but can't figure out how to send them to different channels. Any help would be appreciated. 🙂

Thanks!
0 Kudos
Message 4 of 13
(5,242 Views)


keshav wrote:
 I want to generate two different sounds in each channel, but I wasn't able to get the above method to work for me.
What kind of problems did you encounter when you made an array of the two waveforms? (broken wire? incorrect result?, etc.)

 
0 Kudos
Message 5 of 13
(5,234 Views)
Hi Altenbach,

it's a broken wire - SOWrite doesn't take an input array... See attachment (LV85).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(5,226 Views)
Hi GerdW,

Yes that is the problem i'm facing. SOWrite doesn't take an input array. I can't use your attachment though, since i'm using LV8. Could you explain briefly what I should be doing? Thanks!
0 Kudos
Message 7 of 13
(5,219 Views)
Hi keshav,

no idea so far - I will write an email to NI support right now...

(The attached pic shows the block diagram of the example vi.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(5,213 Views)
Thanks for the pic GerdW, i'll try that out now. Do let me know what you find out.

cheers.
0 Kudos
Message 9 of 13
(5,209 Views)


GerdW wrote:
Hi Altenbach,

it's a broken wire - SOWrite doesn't take an input array... See attachment (LV85).


Your two waveform controls are actually already 1D arrays of waveforms, probably with one element each (?). Your code would make a 2D array of wavforms that the primitive cannot accept.

Possible Solutions:
  • Make sure you have a 1D array of waveforms with two elements, one for each channel.
  • Right-click on the "built array" node and select "concatenate inputs". (this will work if each input array has onne waveform element)

Useful tools:

  • When you hover over a wire using the context help window, it will tell you eactly what you have. 🙂
  • Hover over the broken wire, and it'll tell you what the problem is, just wait for the tip strip (see iamge).



Message Edited by altenbach on 02-29-2008 08:57 AM
0 Kudos
Message 10 of 13
(5,189 Views)