Python:在Intellij中导入ADI

如何解决Python:在Intellij中导入ADI

我购买了PlutoSDR,并且正在运行Windows10。我不知道如何将adi导入Windows的IDE中。 (Linux VM有效)


非必要背景。可以跳到底部

我也从C:\> iio_info -s那里得到了输出

C:\WINDOWS\system32>iio_info -s
Library version: 0.21 (git tag: 565bf68)
Compiled with backends: xml ip usb serial
Unable to create Local IIO context : Function not implemented
Available contexts:
0: 0456:b673 (Analog Devices Inc. PlutoSDR (ADALM-PLUTO)),serial=1044739659930006f4ff24003edc27135f [usb:3.9.5]

在这一点上,我不知道注释“ Unable to create Local IIO contest: ...”是否有问题,但是我还是继续。

然后我运行命令:C:\> iio_info -u ip:192.168.2.1

Library version: 0.21 (git tag: 565bf68)
Compiled with backends: xml ip usb serial
IIO context created with network backend.
Backend version: 0.18 (git tag: v0.18 )
Backend description string: 192.168.2.1 Linux (none) 4.14.0-42540-g387d584 #301 SMP PREEMPT Wed Jul 3 15:06:53 CEST 2019 armv7l
IIO context has 9 attributes:
hw_model: Analog Devices PlutoSDR Rev.B (Z7010-AD9364)
hw_model_variant: 0
hw_serial: 1044739659930006f4ff24003edc27135f
fw_version: v0.31
ad9361-phy,xo_correction: 39999954
ad9361-phy,model: ad9364
local,kernel: 4.14.0-42540-g387d584
ip,ip-addr: 192.168.2.1
uri: ip:192.168.2.1
IIO context has 5 devices:
iio:device0: adm1177
2 channels found:
voltage0: (input)
2 channel-specific attributes found:
attr 0: raw value: 777
attr 1: scale value: 6.433105468
current0: (input)
2 channel-specific attributes found:
attr 0: raw value: 797
attr 1: scale value: 0.516601562
No trigger on this device
iio:device1: ad9361-phy
9 channels found:
altvoltage1: TX_LO (output)
8 channel-specific attributes found:
attr 0: external value: 0
attr 1: fastlock_load value: 0
attr 2: fastlock_recall ERROR: Invalid argument (-22)
attr 3: fastlock_save value: 0 7,7,7
attr 4: fastlock_store value: 0
attr 5: frequency value: 2449999998
attr 6: frequency_available value: [46875001 1 6000000000]
attr 7: powerdown value: 0
voltage0: (input)
15 channel-specific attributes found:
attr 0: bb_dc_offset_tracking_en value: 1
attr 1: filter_fir_en value: 0
attr 2: gain_control_mode value: slow_attack
attr 3: gain_control_mode_available value: manual fast_attack slow_attack hybrid
attr 4: hardwaregain value: 71.000000 dB
attr 5: hardwaregain_available value: [-3 1 71]
attr 6: quadrature_tracking_en value: 1
attr 7: rf_bandwidth value: 18000000
attr 8: rf_bandwidth_available value: [200000 1 56000000]
attr 9: rf_dc_offset_tracking_en value: 1
attr 10: rf_port_select value: A_BALANCED
attr 11: rf_port_select_available value: A_BALANCED B_BALANCED C_BALANCED A_N A_P B_N B_P C_N C_P TX_MONITOR1 TX_MONITOR2 TX_MONITOR1_2
attr 12: RSSi value: 114.25 dB
attr 13: sampling_frequency value: 30720000
attr 14: sampling_frequency_available value: [2083333 1 61440000]
voltage3: (output)
8 channel-specific attributes found:
attr 0: filter_fir_en value: 0
attr 1: raw value: 306
attr 2: rf_bandwidth value: 18000000
attr 3: rf_bandwidth_available value: [200000 1 40000000]
attr 4: rf_port_select_available value: A B
attr 5: sampling_frequency value: 30720000
attr 6: sampling_frequency_available value: [2083333 1 61440000]
attr 7: scale value: 1.000000
altvoltage0: RX_LO (output)
8 channel-specific attributes found:
attr 0: external value: 0   ............

还有很多输出,但是我将在这里截断。

这时,我假设Pluto可以在Windows机器上运行。


基本信息:

然后我进入我的IDE,并通过使用文件>项目结构> SDK>包导入matplotlibnumpy的库

我能够找到所有基本库,但找不到adi

我假设我必须导入存储库,但是不确定在哪里收集它。但是,我确实将https://github.com/analogdevicesinc/libiio.git/包含在我的仓库列表中。我仍然没有进口adi的运气。

我目前有两个问题:

  1. 是否有必须添加的存储库才能导入该库 到我的IDE?
  2. Unable to create Local IIO context : Function not implemented...”有问题吗?

感谢您的帮助。

解决方法

重新安装上述驱动程序后,我可以依次归档>项目结构> SDK>软件包并安装pyadi-iio

我现在可以import adi

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?