11-30-2010 01:40 AM
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
11-30-2010 05:51 PM - edited 11-30-2010 05:53 PM
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:
I hope this helps, but feel free to clarify your requirements.
12-01-2010 03:15 AM
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
12-01-2010
03:53 AM
- last edited on
05-02-2025
05:13 PM
by
Content Cleaner
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.
12-08-2010 03:15 AM
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
12-10-2010 10:17 AM
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
12-13-2010 01:47 AM
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
12-13-2010 04:22 PM
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,
12-14-2010 01:04 AM
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
12-15-2010 06:06 AM
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