是德科技
直播中

李淑华

8年用户 204经验值
私信 关注
[问答]

通过USB从PNA-X到PC的数据传输不能使用局域网

我有运行Windows 7的PNA-X(N5247A)(固件A.10.00.00),我使用SCPI通过GPIB获取数据,有没有办法使用SCPI将数据从PNA-X传输到PC(Windows 7)
通过USB,我不能使用局域网。
我希望这将是一个更快的数据传输。

以上来自于谷歌翻译


     以下为原文

  I have PNA-X (N5247A) running Windows 7, (firmware A.10.00.00), I am using SCPI thru GPIB to get data, is there a way to transfer data from PNA-X to PC (Windows 7) using SCPI over USB, I can't use LAN.
I am hoping that this will be a faster data transfer.  

回帖(4)

刘华湘

2018-9-29 17:34:47
无论用于将PC连接到PNA-X的电缆类型如何,SCPI命令都完全相同。
您可以轻松地从GPIB切换到USB,这取决于您使用的VISA IO接口/库。
在大多数情况下,只需要传递给viOpen(或其环境中的等效方法)方法的地址字符串。
在一种情况下,您发送的字符串以“GPIB [some number] ::”开头,而在另一种情况下,它是一个以“USB [some number] ::”开头的字符串

以上来自于谷歌翻译


     以下为原文

  the SCPI commands are exactly the same regardless of the type of cable you use to connect your PC to your PNA-X.  how easily you can switch from GPIB to USB really depends on the VISA IO interface/library you are using.  in most cases it is simply a matter of the address string you pass to the viOpen (or its equivalent in your environment) method.  in one case you are sending a string that starts with "GPIB[some number]::" and in the other case it is a string that starts with "USB[some number]::"
举报

李淑华

2018-9-29 17:54:38
引用: Topcbpcba 发表于 2018-9-29 14:34
无论用于将PC连接到PNA-X的电缆类型如何,SCPI命令都完全相同。
您可以轻松地从GPIB切换到USB,这取决于您使用的VISA IO接口/库。
在大多数情况下,只需要传递给viOpen(或其环境中的等效方法)方法的地址字符串。

目前我们使用NI(USB)USB到GPIB设备使用NI.488.2驱动程序传输数据。
对于USB,我们需要什么样的驱动程序或库?

以上来自于谷歌翻译


     以下为原文

  Currently we are using National Instruments (NI) USB to GPIB device to transfer data using NI.488.2 driver.
For USB what kind of drivers or libraries we will need?
举报

刘华湘

2018-9-29 18:07:11
引用: 鹤壁华盛 发表于 2018-9-29 14:54
目前我们使用NI(USB)USB到GPIB设备使用NI.488.2驱动程序传输数据。
对于USB,我们需要什么样的驱动程序或库?

PNA-X后面板上有一个设备侧USB连接器(见下图)。
您只需使用标准USB电缆将PC连接到PNA-X即可。
然后,您可以使用NI MAX应用程序将PNA-X配置为USB仪器。
这是NI网站的_ * link * _,以获取有关如何执行此操作的说明。
将PNA-X配置为USB设备并验证可以与PC通信后,只需更改您使用的VISA资源ID字符串即可使用所有通过SCPI控制PNA-X的现有应用程序
连接到PNA-X。
对于USB仪器,资源ID字符串将如下所示:USB0 :: 2391 :: 11288 :: + [pna-x主机名或IP地址] + :: 0 :: INSTR!https://dl.dropboxusercontent.com
/u/87949221/Forum/ThreadID_119530/PNAX-DeviceUSB.png!

以上来自于谷歌翻译


     以下为原文

  the PNA-X has a device side USB connector on the back panel(see picture below).  all you need is to connect your PC to the PNA-X using a standard USB cable.  you can then use your NI MAX application to configure the PNA-X as a USB instrument.  Here is a _*link*_ to an NI website for directions on how to do that.  Once you have configured the PNA-X as a USB device and verified that you can communicate with it with your PC, you then use all your existing applications that control the PNA-X with SCPI by simply changing the VISA resource ID string that you use to connect to the PNA-X.  for a USB instrument the resource ID string will look something like this:

USB0::2391::11288::+[pna-x hostname or ip address]+::0::INSTR

!https://dl.dropboxusercontent.com/u/87949221/Forum/ThreadID_119530/PNAX-DeviceUSB.png!
举报

刘华湘

2018-9-29 18:27:03

看起来像NI Max设置错误,我的任何一台PC上都没有NI IO库,所以我无能为力。
至少我会从* IDN中删除“ n”开头?
串。

以上来自于谷歌翻译


     以下为原文

  that looks like a NI Max setup error and I don't have the NI IO libraries on any of my PCs, so I can't be much help.  At a minimum I would start by getting rid of the "n" from the *IDN? string.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分