How can I read an audio file and brodcast it using NI RFSG?
Hi everybody,
I'm designing a wireless audio signal simulation system that will read an audio signal from a file and modulate the signal using NI 5671 RFSG, then broadcast it to be received at an NI 5660 RFSA.
All I need is some guidance from you guys. Some related examples would be of great help since I'm a new user of NI hardwares and software.
Thanks in advance.
Muslim,
Communication Engineering Student,
International Islamic University Malaysia.
Hi,
I’m going to
help here since Paul is out of the office, so far you have been able to use
Paul’s example to generate a signal from a Wav File, right? I have a question:
why did you combine some of the parts of the (fm-modulation) with the generate
FM signal from WAV file if the example Paul attached is already modulating the
signal?
I have another question on the part
that you are stuck when reading the file, do you want to play it back through
your speakers or you just want to be able to see the array of samples? Have you
seen the example “MT niRFSA Demodulate FM.vi”? And if so why it does not help? Here
is another example for FM modulation: Sound File Frequency
Modulated Generation using NI-567x I would like to let you know that all
those examples Paul and I are giving you are located at our website most are
free and you may find them yourself; if you have the necessary drivers and
toolkits installed you should be good to go. “The examples
available do not show what I'm searching for” What are you
searching for? What type of analysis do you need to perform?
Remember
that in the RFSA part of your project what you are going to be receiving will
be an array that contains all the points of your data not a WAV file. I will suggest trying to
run both FM example the RFSG and RFSA with no modification for a better
understanding of what is happening.
I hope it helps
Jaime Hoffiz
National Instruments
Product Expert
Digital Multimeters and LCR Meters
Similar Messages
-
How can one read a Excel File and Upload into Table using Pl/SQL Code.
How can one read a Excel File and Upload into Table using Pl/SQL Code.
1. Excel File is on My PC.
2. And I want to write a Stored Procedure or Package to do that.
3. DataBase is on Other Server. Client-Server Environment.
4. I am Using Toad or PlSql developer tool.If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
1. Get your DBA to create directory object in oracle using the following command:
create directory TEST_DIR as ‘directory_path’;
Note: This directory is on the server.
2. Grant read,write on directory directory_object_name to username;
You can find out the directory_object_name value from dba_directories view if you are using the system user account.
3. Logon as the user as mentioned above.
Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
function getData(p_filename in varchar2,
p_filepath in varchar2
) RETURN VARCHAR2 is
input_file utl_file.file_type;
--declare a buffer to read text data
input_buffer varchar2(4000);
begin
--using the UTL_FILE in built package
input_file := utl_file.fopen(p_filepath, p_filename, 'R');
utl_file.get_line(input_file, input_buffer);
--debug
--dbms_output.put_line(input_buffer);
utl_file.fclose(input_file);
--return data
return input_buffer;
end;
Hope this helps. -
How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
Thank you!Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave. -
How can I upload an audio file and link a page on my webiste to it?
I host a radio show weekly, have recorded broadcasts in MP3, want to host them on itunes and have a link from my website for visitors to listen to. Can anyone help me? Thanks
Could I ask you to read my 'get you started' page on podcasting, which should answer most of your questions.
http://rfwilmut.net/pc
If you still have questions do please come back.
As to your website, which is a separate matter from iTunes, you can provide embedded players - these pages gives you some information:
How to embed an MP3 audio file into a web page without bringing up dialog boxes in Windows
How to create a pop-up MP3 player -
How can i read the text files and buffer the data in Vector?
hi. I have been running into this problem for days, but with no luck and losing right direction.
The problem is : I am trying to read a text file and buffer the data into a
Queue for each user.
the sample text file is as below:( 1st column is timestamp, 2nd is user_id, 3rd is packet_id, 4th is packet_seqno, 5th is packet_size)
0 1 1 1 512
1 2 1 2 512
2 3 1 3 512
3 4 1 4 512
4 5 1 5 512
5 6 1 6 512
6 7 1 7 512
7 8 1 8 512
8 9 1 9 512
9 10 1 10 512
10 1 2 11 512
11 2 2 12 512
12 3 2 13 512
13 4 2 14 512
14 5 2 15 512
15 6 2 16 512
16 7 2 17 512
17 8 2 18 512
18 9 2 19 512
19 10 2 20 512
20 1 3 21 512
21 2 3 22 512
22 3 3 23 512
23 4 3 24 512
24 5 3 25 512
25 6 3 26 512
26 7 3 27 512
27 8 3 28 512
28 9 3 29 512
29 10 3 30 512
30 1 4 31 512
31 2 4 32 512
32 3 4 33 512
33 4 4 34 512
34 5 4 35 512
35 6 4 36 512
36 7 4 37 512
37 8 4 38 512
38 9 4 39 512
39 10 4 40 512
40 1 5 41 512
41 2 5 42 512
42 3 5 43 512
43 4 5 44 512
44 5 5 45 512
45 6 5 46 512
46 7 5 47 512
47 8 5 48 512
48 9 5 49 512
49 10 5 50 512
50 1 6 51 512
51 2 6 52 512
52 3 6 53 512
53 4 6 54 512
54 5 6 55 512
55 6 6 56 512
56 7 6 57 512
57 8 6 58 512
58 9 6 59 512
59 10 6 60 512
60 1 7 61 512
61 2 7 62 512
62 3 7 63 512
63 4 7 64 512
64 5 7 65 512
65 6 7 66 512
66 7 7 67 512
67 8 7 68 512
68 9 7 69 512
69 10 7 70 512
70 1 8 71 512
71 2 8 72 512
What I wanna do is to read all the data above and buffer them in a queue for each user( there are only 10 users in total).
I already created a class called Class packet:
public class packet {
private int timestamp;
private int user_id;
private int packet_id;
private int packet_seqno;
private int packet_size;
/** Creates a new instance of packet */
public packet(int timestamp,int user_id, int packet_id,int packet_seqno, int packet_size)
this.timestamp = timestamp;
this.user_id=user_id;
this.packet_id=packet_id;
this.packet_seqno=packet_seqno;
this.packet_size=packet_size;
}then I wanna to create another Class called Class user which I can create a queue for each user (10 users in total) to store type packet information. the queue for each user will be in the order by timestamp.
any idea and sample code will be appreciated.Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave. -
How can i read only .txt file and skip other files in Mail Sender Adapter ?
Hi Friends ,
<b> I am working on scenario like , I have to read an mail attachement and send the data to R3.</b>
It is working fine if only the .txt file comes.
<b>Some times ,html files also coming along with that .txt files. That time my Mail adapter fails to read the .txt file.</b>
I am using PayLoadSwap Bean and MessageTransformBean to swap and send the attachment as payload .
<b>Michal as told to write the Adapter module to skip the files .But i am not ware of the adapter moduel . If any blogs is there for this kind of scenarios please give me the link.</b>
Otherwise , please tell me how to write adapter module for Mail Sender Adapter?
How to download the following
newest patch of XI ADAPTER FRAMEWORK CORE 3.0
from SAP Service Marketplace. Open the file with WinZip and extract the following
SDAs:
aii_af_lib.sda, aii_af_svc.sda
aii_af_cpa_svc.sda
I have searche in servive market place .But i couldn't find that . Can you please provide me the link to download the above .
If any other suggestions other than this please let me know.
Regards.,
V.Rangarajan=P
Dude, netiquette. Messages like "i need this now! Do it!" are really offensive and no one here is being payed to answer anyone's questions. We're here because we like to contribute to the community.
Anyway, in your case, just perform some search on how you could filter the files that are attached to the message. The sample module is just an example, you'll have to implement your own. Tips would be to query the filename of the attachments (or maybe content type) and for the ones which are not text, remove them.
Regards,
Henrique. -
How can I read from a file line by line?
Hi!
Could someone post some code or explain how can I read from a file, and want I to read a line each time. How can I go to line number N?
Thankshi,
u can try this:
try {
// open text file
BufferedReader in = new BufferedReader(new FileReader(fileName));
String line=in.readLine();
while((line=in.readLine()) != null) {
System.out.println(line);
}The go to line number N i m not so sure.
Cheers
Jerry -
How can I read a Excel file?
How can I read an Excel file and compare if the cells type are numeric or not??
i hope you can can give me a hand..
thanksIf you want to use plsql try utl_file supplied package to read the excel file -> http://psoug.org/reference/utl_file.html
And you can use a function like this to understand if the column is number or not ;
CREATE OR REPLACE FUNCTION is_number (
char_in VARCHAR2)
RETURN BOOLEAN
IS
n NUMBER;
BEGIN
n := TO_NUMBER(char_in);
RETURN TRUE;
EXCEPTION
WHEN OTHERS THEN
RETURN FALSE;
END is_number;
DECLARE
x BOOLEAN;
BEGIN
IF is_number('ABC') THEN
dbms_output.put_line('TRUE');
ELSE
dbms_output.put_line('FALSE');
END IF;
END;
/ -
How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy?
It is very cumbersome to "re browse" for audio files/pics/movie clips to add to menu screens. Certainly there is a way to view the media and menu screen at the same time so I can drag and drop?Jayhawk
I think I know exactly what you are seeking and believe it cannot be done in Premiere Elements 11, 12, and 13 as it can be done in versions earlier than 11 where the Disc Layout and Project Media are viewed side by side.
Premiere Elements 13 uses a Movie Menu customization workspace which is not allowing viewing of Project Assets in the Expert workspace at the same time.
ATR -
How can I add an audio file to each slide when I export to HTML Keynote 6.2
How can I add an audio file to each slide when I export to HTML Keynote 6.2
I am trying to create an audio slide show instead of a movieDrag and drop one music files onto each slide then export. (File > Export > HTML)
-
How can I record an audio sound and convert it to a ringtone?
How can I record an audio sound and convert it to a ringtone?
Record your voice using iPhone (for ringtone only 35 secs or under are valid), sync iPhone with iTunes.
In iTunes the recorded voice is listed under Music as some_numbers.m4a.
Right click on the item and choose Create AAC version.
Drag the converted voice onto the desktop.
Delete the voice copy in iTunes. (important step)
On desktop, rename the some_number.m4a to something_more_intelligent.m4r
Drag it back to iTunes and you will find it under Tones.
Now select it (for sync) and connect your iPhone, do a sync.
If everything works out, it will be in Settings > Sounds > Ringtone.
Now choose a contact you want to assign this ringtone, tap Edit and add the ringtone.
Hope this helps. -
How can I back up my files and photos on my iPhone to my iMac?
How can I back up my files and photos on my iPhone to my iMac?
You can back up the iPhone to your Mac with iTunes.
Make sure, your iTunes version is up to date. Connect your iPhone to an USB port and launch iTunes.
See this document: http://support.apple.com/kb/HT1766
If you want a separate folder with your photos, download the camera roll contents by connecting the iPhone to USB. You emac will see it as camera and you can download the photos using Image Capture to a folder on your Mac, or using iPhoto or Aperture to your photo library. -
How can I read the EXCEL file while Program is running in background.
Hi all Expert,
How can I read the EXCEL file while Program is running in background.
Thanksyou need to place ur excel file on application server and follow this thread: Reading an Excel file from the application server?
loots of information if you can search forum.. thanks -
I have the latest downloadable version of LR5. It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next time is launches. I get the same message the next and every subsequent time it launches so I can't launch LR at all now.
I get that the preview file got corrupted somehow. Is there some way to fix this problem without building a new catalog?Use Windows Explorer to open the folder containing your catalog. You will see a folder with the extension .lrdata. You need to delete that folder and then start Lightroom again. Lightroom will generate a new previews folder.
-
How can i make shorten systemlog files and joblog files on OS
Hello
How can i make shorten systemlog files and joblog files on OSHello Jan,
You can limit the size of system log.
The size of the application server's System Log is determined by the
following SAP profile parameters. Once the current System Log reaches
the maximum file size, it gets moved to the old_file and and a new
System Log file gets created. The number of past days messages in the
System Log depends on the amount/activity of System Log messages and the
max file size. Once messages get rolled off the current and old files,
they are no longer retrievable.
rslg/local/file /usr/sap/<SID>/D*/log/SLOG<SYSNO>
rslg/local/old_file /usr/sap/<SID>/D*/log/SLOGO<SYSNO>
rslg/max_diskspace/local 1000000
rslg/central/file /usr/sap/<SID>/SYS/global/SLOGJ
rslg/central/old_file /usr/sap/<SID>/SYS/global/SLOGJO
rslg/max_diskspace/central
Refer to http://help.sap.com/saphelp_nw70/helpdata/EN/c7/69bcbaf36611d3a6510000e835363f/content.htm
for explanation of profile parameters.you can reduce the size of system log using rslg/max_diskspace_local and rslg/max_diskspace_central
But you can't reduce the size of job log files on OS
Rohit
Maybe you are looking for
-
How to find the user exit for a screen..
Hi, plz help me how to find the user exit for a screen..? Regards Anbu
-
Leave Request - can't change the time of pending request
Hello, We are trying to change the time of a pending leave request and when entering a new time in the duration field, the original time still shows up on the Review and Send screen. The leave request is for one day and for 5 hours - we are trying t
-
HT3739 The "date added" function is no longer working for me...
I accidentally "poofed" the downloads folder from my toolbar. I put it back, but now documents are arranged in no discernible way. Even when I choose the "date added" option, this does not fix it. Just want to see the most recent downloads on top
-
I purchased the creative cloud photography plan. I downloaded creative cloud and tried to start using lightroom but it keeps asking for a serial number and I dont have one I bought it all online and it wont let me use lightroom help!
-
i purchased the Motown 50 album (not the love one out now the one before it for the 50th anniversary of Motown (black cover big gold M and number 50) before Christmas and i just got a new phone with more storage and wanted put all my music on it. I h