source:
ResearchApps/PHY/WARPLAB/WARPLab_v05_2/M_Code_Reference/warplab_readRegister.m
Last change on this file was 1311, checked in by mduarte, 15 years ago | |
---|---|
File size: 341 bytes |
Line | |
---|---|
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.