diff options
author | Samuel O'Brien <sam.obrien@ni.com> | 2020-07-21 13:59:39 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-10-07 15:29:19 -0500 |
commit | bfff8b79b950f2f1cebfd2db662a4205df5da65a (patch) | |
tree | 58ebe4d31a9d0c459f03454ebded8bb695a6651d /mpm/python/usrp_mpm/dboard_manager/__init__.py | |
parent | 6394a7c6ea395e2d21c3e2b9e43e1b2dc84666b5 (diff) | |
download | uhd-bfff8b79b950f2f1cebfd2db662a4205df5da65a.tar.gz uhd-bfff8b79b950f2f1cebfd2db662a4205df5da65a.tar.bz2 uhd-bfff8b79b950f2f1cebfd2db662a4205df5da65a.zip |
sim: Add Daughterboard Methods
This commit adds daughterboard simulation to the simulator. There is a
sim_dboard class which registers it's methods with the rpc server. These
methods are visible over mpm as well as the mpm_shell.
Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/__init__.py')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/__init__.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/__init__.py b/mpm/python/usrp_mpm/dboard_manager/__init__.py index 77fd84436..3677394fc 100644 --- a/mpm/python/usrp_mpm/dboard_manager/__init__.py +++ b/mpm/python/usrp_mpm/dboard_manager/__init__.py @@ -7,10 +7,12 @@ dboards module __init__.py """ from .base import DboardManagerBase -from .magnesium import Magnesium -from .rhodium import Rhodium -from .neon import Neon -from .e31x_db import E31x_db -from .eiscat import EISCAT -from .test import test -from .unknown import unknown +from usrp_mpm import __simulated__ +if not __simulated__: + from .magnesium import Magnesium + from .rhodium import Rhodium + from .neon import Neon + from .e31x_db import E31x_db + from .eiscat import EISCAT + from .test import test + from .unknown import unknown |