LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to interrface input to system speaker ?

hi to all

iam attaching file

i want to generate any random signal in labview .vi & then wants to save it and disply on speaker

iam using labview 2009 sp1

 

basically iam having mathscript file where i wants to give it to input node of it, to give simple input to mathscript node is easy , but i want that input id generated & stored then applied

that sould be a vector also, beacuse the code in my mathscript needed that

 

 

can some one will help me regarding my problem

thanks to all

 

tc

 

0 Kudos
Message 1 of 11
(5,042 Views)

Hi tc,

 

You didn't attach any code, and I'm not sure exactly what you're trying to accomplish, but the LabVIEW side of your problem may be as simple as this:

 

Random Noise.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I hope this helps, but feel free to clarify your requirements.

Fred Visser -- SystemLink R&D -- National Instruments
Message 2 of 11
(5,009 Views)

thanks  Fred_V

i want to input any noise or chirp signal to speaker . then wants to store the data

and then capture another input data using microphone and store the data

i have tried this way but not succeseded

 

iam attching my file as well


0 Kudos
Message 3 of 11
(4,993 Views)

Hi, for that purpose you should use Sound VIs

 

https://www.ni.com/docs/en-US/bundle/labview/page/sound-vis.html

 

You can record, play and save sound files.

 

About your chirp signal, do you have it stored in a file or are going to produce it?.

 

I am using LabVIEW 8.6, if you can downconvert your VI, i can have a look at it and also upload a reference VI for you sound problem.

LabVIEW 8.2,8.6,2009...still learning 😛
0 Kudos
Message 4 of 11
(4,988 Views)

i want to add more in my question that

 

I am working on an application related to adaptive noise cancellation, for that I am needing the hardware setup which includes two inputs & two outputs,

Using labview I want to design two input(means two microphones) & two outputs(two speakers) on real time targets using Compact RIO NI-CRIO 9012, with chassis Crio-9102 with input module (NI-9233 or NI-9201) & output module(NI-9263)

I have started designing my problem with labview examples and NI discussion forums

I am currently using labview 2010 version

I am attaching my project file in which IO read (fpga) and IO read (Host).

I am reading input modules on fpga & then taking values on real time on host, but not getting the exact results. Like I want to speak something in my microphone and will hear on speakers.

My problem is that inputs modules is configure properly on fpga VI but how I will give that input on output modules

Is someone will help me out?

 

Thanks

0 Kudos
Message 5 of 11
(4,928 Views)

Hi,

 

If you don't mind, could you clarify what is not working correctly? Are you not getting the correct values in your real-time VI? Are you not able to hear your signal on the analog output? I looked at your project and at first glance I couldn't see anything wrong, so it would help if you could clarify where you are getting incorrect results.

 

Thanks,

 

Paul

National Instruments

Applications Engineering

0 Kudos
Message 6 of 11
(4,884 Views)

hi all again

 

i have again design the input and output module

 

basically i want to configure input (NI-9201) and output (NI-9263) on chassis cRIO 9102 and real time controller  (cRIO 9012)

iam attaching the project file which include my program

iam getting some output but not satisfactory result

beacuse i want to sample input at 800 hz sampling rate

how could i do that

the reading which comes from input module is very less

tc nd waiting for reply 

0 Kudos
Message 7 of 11
(4,840 Views)

Hi,

 

This is my understanding of what is going on: In the first project you are doing AI using the 9233 and then taking this data and doing AO using the 9263. This project seems like it would accomplish this, so if you are experiencing problems, what are they?

 

The second project appears to do the same thing, except with a 9201 as your input module. What are you setting as your loop speed in your FPGA VI? If you want to sample at 800Hz then you should use a loop speed of 1250us. You are also sending your AI data to the RT VI and then back to the FPGA VI. This seems unnecessary. You can just write AI directly to the AO in the FPGA VI and then send the AI to the RT VI using a FIFO.

 

If you can elaborate on the issues that you are seeing I will be better able to help you.

 

Thanks,

 

 

Message 8 of 11
(4,807 Views)

thanks PaulRB for help

ur right my both project were same only the difference was input module

now iam strict with ni-9201 module with output ni-9263 module

you are right also that we can directly give Ai data to Ao data in FPGa, i have done that by using FIFO

and the time loop i will change then i will see at 1250 usec we will get 800 hz

 

more i will tel if i stuck any where

take care

 

thanks

0 Kudos
Message 9 of 11
(4,788 Views)

hi all

i have one more thing to ask

is it possible to write data on spread sheet on real time controller as host vi??

 

my program is not working iam trying to do that but it shows error

 

what reason should be wither my real time controller crio9012 is not supporting it or any other

 

thanks

waiting for kind reply

tc

0 Kudos
Message 10 of 11
(4,744 Views)