source: ResearchApps/PHY/WARPLAB/ResearchExamples/LTE_Setup/LTE_MATLAB_Reference_Files/1user_mimo/warplab_readRegister.m

Last change on this file was 1590, checked in by mduarte, 14 years ago
File size: 341 bytes
Line 
1function value_out = warplab_readRegister(nodeHandle, register_Id)
2
3pktNoTx = 1;
4
5ReadWrite = 0; % Set ReadWrite to 0 to read register
6
7% Set the packet to be sent to the WARP node
8pktDataTx = [pktNoTx, register_Id, ReadWrite];
9
10datarec = warplab_pktSend(nodeHandle, pktDataTx);
11pktNoTx = pktNoTx+1;
12
13value_out =  datarec(4);
14
Note: See TracBrowser for help on using the repository browser.