source: ResearchApps/PHY/WARPLAB/WARPLab_v06_1/M_Code_Reference/warplab_readSMRO.m

Last change on this file was 1311, checked in by mduarte, 15 years ago

Adding files for WARPLab release 05

File size: 478 bytes
Line 
1function [rawData] = warplab_readSMRO(udpSock, SMRO_id, numSamples)
2
3pktNoTx = 1;
4
5% rxCmd = eval(sprintf('RADIO%d_RXDATA', radio));
6% rssiCmd = eval(sprintf('RADIO%d_RSSIDATA', radio));
7
8%Read the raw samples from the selected SMRO
9rawData = [];
10for n = 0:256:numSamples-1
11    pktDataTx = [pktNoTx SMRO_id n];
12    datarec = warplab_pktSend(udpSock, pktDataTx);
13    pktNoTx = pktNoTx+1;
14
15    rawData = [rawData uint32(datarec(5:end))];
16end
17
18rawData = rawData(1:numSamples);
Note: See TracBrowser for help on using the repository browser.