1clear all;
2
3LoadLimeSuite
4
5LimeInitialize();               % open first device
6
7LimeLoadConfig('trxTest.ini');  % load configuration from file
8                                % use LimeSuiteGUI to create configuration file
9
10readCnt = 1024*64;          %samples to read (64K)
11fifoSize = 1024*1024        %set library FIFO size to 1 MSample
12
13LimeStartStreaming(fifoSize,["rx0"; "rx1"]); % start RX from channels 0 and 1
14
15%receive samples, overwrite the same array
16for i=1:40
17    samplesCh0 = LimeReceiveSamples(readCnt,0); % read samples from RX channel 0
18    samplesCh1 = LimeReceiveSamples(readCnt,1); % read samples from RX channel 1
19end
20LimeGetStreamStatus()     %must run at least 1s to get data rate (B/s)
21%stop streaming
22LimeStopStreaming();      % stop streaming
23LimeDestroy();            % close device
24%plot samples
25figure(1)
26plot(real(samplesCh0));
27figure(2)
28plot(real(samplesCh1));
29
30