Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Local Variables in Sound I/O

I have a question regarding local variables.

 

I am using the Simultaneous Sound IO example and trying to set up a variable delay. The delay im getting is determined by whatever value I initially set as the No of Samples/Ch. Changing the value on the Front Panel is having no effect

 

Any help is appreciated !

0 Kudos
Message 1 of 4
(3,648 Views)

Post your code, please.

 

Also, I don't see what either local variables or sound I/O has to do with Digital I/O - the board you posted to. The LabVIEW board would have been much more appropriate.

0 Kudos
Message 2 of 4
(3,643 Views)

Apologies if i've posted in the wrong forum. I am new to LabView

 

I am just using the NI example 'Simultaneous Sound IO.vi'

 

0 Kudos
Message 3 of 4
(3,640 Views)

Since you mentioned local variables and the example does not use any, I assumed you had done some modifications.

 

In any case, I saw your other thread on the same subject. In order to change the number of samples, I suspect you would have to stop the running task and call the Sound Input Configure again. Since it's been a long time since I've used the sound functions, I'm not sure of this though. Try placing the configure function inside the loop along with the control and see if you get an error.

0 Kudos
Message 4 of 4
(3,637 Views)