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 |
Rev | Line | |
---|---|---|
[1590] | 1 | function value_out = warplab_readRegister(nodeHandle, register_Id) |
2 | ||
3 | pktNoTx = 1; | |
4 | ||
5 | ReadWrite = 0; % Set ReadWrite to 0 to read register | |
6 | ||
7 | % Set the packet to be sent to the WARP node | |
8 | pktDataTx = [pktNoTx, register_Id, ReadWrite]; | |
9 | ||
10 | datarec = warplab_pktSend(nodeHandle, pktDataTx); | |
11 | pktNoTx = pktNoTx+1; | |
12 | ||
13 | value_out = datarec(4); | |
14 |
Note: See TracBrowser
for help on using the repository browser.