发 帖  
原厂入驻New
[问答] 如何用LabVIEW驱动程序来控制33522A函数发生器
185 labview 驱动程序
分享
我正在尝试使用National Instruments网站上提供的labview驱动程序来控制33522A函数发生器。
现在我只是运行一个示例VI,以确保在将其集成到我的项目之前了解一切是如何工作的。
当我第一次启动函数发生器时,我可以在MAX中看到它并且VI运行正常。
然而,在我停止VI并尝试再次运行之后,MAX再也看不到它了,LabVIEW开始给我错误,直到我循环上电。
我第一次尝试在成功运行后运行它会给我以下错误:VISA:(HEX 0xBFFF0015)超时在操作完成之前到期。
每次我尝试运行它后,它会给我一个不同的错误:VISA:(Hex 0xBFFF0011)位置信息不足或系统中没有设备。
我仍然可以在Windows设备管理器中看到它,但MAX无法看到它,LabVIEW将不会与它进行交互,直到我循环上电。我在Windows 7上运行LabVIEW 2009 SP1(32位)。我
我也尝试在另一台计算机上运行它与几乎相同的设置,但一些模块的较新版本(但可以在下面的链接找到相同的驱动程序)和经历完全相同的问题。驱动链接:http://
sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=17973非常感谢任何帮助。

以上来自于谷歌翻译


     以下为原文

  I'm trying to control the 33522A function generator using the LabVIEW drivers provided on the National Instruments website. Right now I'm just running one of the example VIs in order to make sure I understand how everything works before integrating it into my project. When I first start up the function generator I can see it in MAX and the VI runs fine. However, after I stop the VI and try to run it again MAX can no longer see it and LabVIEW starts giving me errors until I cycle the power. The first time I try to run it after a successful run it gives me the following error: VISA: (HEX 0xBFFF0015) Timeout expired before operation completed. and every time I try to run it after that it gives me a dIFferent error: VISA: (Hex 0xBFFF0011) Insufficient location information or the device is not present in the system. I can still see it in the Windows Device Manager, but MAX can't see it and LabVIEW won't interact with it until I cycle the power.

I'm running LabVIEW 2009 SP1 (32-bit) on Windows 7. I've also tried running it on another computer with pretty much the same setup but newer versions of some of the modules (but the same driver which can be found at the link below) and experienced exactly the same problem.

Driver link:
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=17973

Any help would be greatly appreciated.  
0
2019-7-19 12:27:54   评论 分享淘帖 邀请回答

相关问题

10个回答
我实际上没有使用ni驱动器和这个乐器。
我总是在labview中使用签证发送仪器的scpi命令。
我创建了一个视频,让人们开始介绍如何执行此操作。查看此处的示例演示了如何通过labview创建/下载33522A的大型任意波形(对于超过1M点的波形,您将需要16M arb选项):viewJust
想知道如果您遇到驱动程序问题,还有其他选择。
话虽如此,我会在某个时候看看司机,看看我是否能弄清楚发生了什么。
仅供参考.... NI编写了labview驱动程序,如果我们发现了一个错误,就必须将其提交给NI。

以上来自于谷歌翻译


     以下为原文

  I haven't actually used the ni Driver with this instrument.  I have always just sent the instrument's scpi commands using visa in labview.  I created a video to get people started on how to do this.

view

And here is an example that shows how to create/download large arbitrary waveforms to the 33522A via labview (for waveforms over 1M points you will need the 16M arb option):

view

Just wanted to let you know there are other options if you are having problems with the driver.  Having said that I will take a look at the driver sometime and see if I can figure out what's happening.  FYI.... NI wrote the labview driver so if we do find a bug it will have to be submitted to NI.
2019-7-19 12:42:05 评论

举报

你是如何连接乐器的?
USB,LAN还是GPIB?

以上来自于谷歌翻译


     以下为原文

  How were you connecting to the instrument?  USB, LAN or GPIB?
2019-7-19 12:49:19 评论

举报

您使用的是什么版本的NI-VISA?
(您可以通过在'软件'下查看NI-MAX来找到它)您使用了什么具体示例?您是否需要为PC或仪器供电?

以上来自于谷歌翻译


     以下为原文

  What version of NI-VISA were you using? (You can find that out by looking in NI-MAX under 'Software')
What specific example were you using?

Did you have to powercycle the PC or the instrument?
2019-7-19 12:54:19 评论

举报

仪器通过USB连接。
我相信我需要的计算机是VISA 4.6.2。
我正在使用的示例称为“Agilent 3352x Series Standard Waveform.vi”。
此外,我不得不循环仪器的电源,而不是PC。

以上来自于谷歌翻译


     以下为原文

  The instrument is connected through USB. I believe the computer I need to get it working on has VISA 4.6.2. The example I'm using is called "Agilent 3352x Series Standard Waveform.vi". Also, I'm having to cycle the power on the instrument, not the PC.
2019-7-19 13:08:57 评论

举报

你好,我安装了驱动程序,通过usb连接我的仪器,确保我有NI VISA 4.6.2,然后我运行了示例,我没有任何问题。你提到你停了一些东西然后不得不重新启动
仪器。
也许你可以带我一步一步地完成你正在做的事情。
发送仪器的函数发生器设置是什么?
随意使用截图或其他任何您认为可以帮助我重复此操作的内容。

以上来自于谷歌翻译


     以下为原文

  Hello,

I installed the driver, connected my instrument via usb, made sure I had NI VISA 4.6.2, and then I ran the example and I didn't have any problems.

You mentioned you stopped something and then had to power cycle the instrument.  Maybe you could take me step by step through what you are doing.  What are the function generator settings you are sending the instrument?  Feel free to use screenshots or anything else that you think will help me be able to repeat this.
2019-7-19 13:19:27 评论

举报

我没有更改函数发生器的任何设置,我只是在我的计算机上安装了驱动程序并将其插入,它似乎工作。
VI运行完毕后会出现问题。
如果我试图再次运行它而没有先打开仪器的电源,它会给我带来错误。
我明天能否看到一些截图。

以上来自于谷歌翻译


     以下为原文

  I haven't changed any settings on the function generator, I just installed the driver on my computer and plugged it in and it seemed to work. The problem happens after a VI finished running. If I try to run it again without first cycling the power on the instrument it gives me errors. I'll see if I can get some screenshots tomorrow.
2019-7-19 13:27:32 评论

举报

以下是我第一次启动设备后的一些screenshots.MAX:http://img148.imageshack.us/img148/7029/maxbefore.png第二次运行VI后出现的错误:http://img850.imageshack。
发生错误后我们/ img850 / 4786 / error1z.pngMAX:http://img23.imageshack.us/img23/1818/maxafter.png每次运行VI时发生的错误,直到我循环启动设备:
http://img834.imageshack.us/img834/443/error2m.png

以上来自于谷歌翻译


     以下为原文

  Here are some screenshots.

MAX after I first power on the device:
http://img148.imageshack.us/img148/7029/maxbefore.png

The error I get after running the VI a second time:
http://img850.imageshack.us/img850/4786/error1z.png

MAX after the error occurs:
http://img23.imageshack.us/img23/1818/maxafter.png

The error that occurs every subsequent time I run the VI until I cycle the power on the device:
http://img834.imageshack.us/img834/443/error2m.png
2019-7-19 13:47:24 评论

举报

好吧,我一直在谈论NI的支持。
该问题的根本原因尚不清楚,但有一种解决方法可以让您启动并运行。
安装Agilent I / O库,只要系统服务“Agilent IO Library Service”正在运行(默认情况下一直是这样),问题就会消失。您可以在此处下载:http://www.agilent
.com / find / iosuiteI我的PC上安装了NI软件和Agilent I / O库服务,因此我最初无法重现这一点。

以上来自于谷歌翻译


     以下为原文

  Well I've been speaking with NI support a bit.  The root cause of the issue is not yet known but there is a workaround that will get you up and running. 

Install Agilent I/O libraries, and as long as the system service "Agilent IO Library Service" is running (which is all the time by default) the problem will go away.

You can download it here: http://www.agilent.com/find/iosuite

I have both NI software and the Agilent I/O library service installed on my PC thus I was not able to reproduce this initially.
2019-7-19 13:54:10 评论

举报

这很有用,非常感谢你的帮助!

以上来自于谷歌翻译


     以下为原文

  That worked, thank you very much for your help!
2019-7-19 14:03:19 评论

举报

为了解决labview中超出时间的问题,我们必须在HOSTS文件中添加ip和istrument的主机名。但是,如果我尝试连接槽插座,问题仍然存在

以上来自于谷歌翻译


     以下为原文

  For resolve the problem of time exceeded in labview we must append in HOSTS file ip and Hostname of the istrument.
However, the problem persist if i try to connect trough socket
2019-7-19 14:20:38 评论

举报

只有小组成员才能发言,加入小组>>

62个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /10 下一条

快速回复 返回顶部 返回列表