完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
首先:我正在通过DCOM与PNA交谈(功能已被NI LabWindows CVI包围)。
我有一个N5224A PNA。 我已成功编写软件来控制它并从中提取数据。 现在我正在尝试使用辅助触发输出添加其他功能。 我需要根据软件中的用户输入,将Aux Trig 1或Aux Trig 2的输出脉冲分配给特定通道。 我使用了PNA应用程序中的设置(Stimulus-> Trigger-> Trigger ...-> Aux Trig 1和2)来测试输出。 通过菜单工作正常。 我可以随意将输出分配给各个通道。 目的是根据用户输入锁定或解锁开关,因此我将脉冲宽度设置得足够宽以应对开关弹跳,并且它似乎运行良好。 但是当我尝试编写代码时,我遇到了问题。 在PNA帮助文件中,我看到标有“辅助触发器对象”的部分。 它看起来像我想做的。 然而,我在wrappered函数中找到的最佳等价物是ITriggerSetup2SetExternalTriggerConnectionBehavior(caObj,ERROR Info,Trigger Connection,Trigger Connection Behavior)。 当我尝试调用它时,我在PNA显示屏上出现错误,说“触发连接参数未被固件识别为有效”。 我已经尝试了“触发连接”枚举中的每个选项,并且我总是得到相同的消息。 我能找到为前一个函数生成“触发器对象”的唯一地方是IApplication9GetTriggerSetup(caObj,ERROR Info,* Trigger Object)。 因此,即使我上一步工作,我也不确定是否可以为每个通道分配触发输出(与每个应用程序相对)。 此外,我没有看到任何方法来控制脉冲持续时间(如设置屏幕) - 这对我的应用程序来说很重要,以允许切换过渡时间。 还有其他人做过类似的事吗? 感谢所有回复!编辑:mr_matt于2014年4月29日上午11:01 以上来自于谷歌翻译 以下为原文 First off: I am talking to the PNA thru DCOM (functions have been wrappered by NI LabWindows CVI). I have a N5224A PNA. I've successfully written software to control it and pull data off of it. Now I'm trying to add additional functionality using the Auxiliary Trigger Outputs. I need to assign an output pulse from either Aux Trig 1 or Aux Trig 2 to specific channels depending on user inputs within my software. I've used the settings within the PNA application (Stimulus->Trigger->Trigger...->Aux Trig 1 and 2) to test the outputs. Going thru the menus works fine. I can arbitrarily assign the outputs to individual channels. The purpose is to latch or unlatch a switch depending on user inputs, so I made the pulse width wide enough to account for switch bounce, and it seems to work well. But I've had problems when I try to code this up. Within the PNA help file, I see a section labeled "Auxiliary Trigger Object." It looks to do what I would like. However the best equivalent I can find within the wrappered functions is ITriggerSetup2SetExternalTriggerConnectionBehavior(caObj, ERROR Info, Trigger Connection, Trigger Connection Behavior). When I try to call this, I get an error on the PNA display saying, "The trigger connection argument was not recognized as valid by the firmware." I've tried each of the choices in the "trigger connection" enumeration and I always get the same messages. The only place I can find to generate a "Trigger Object" for the previous function is IApplication9GetTriggerSetup(caObj, ERROR Info, *Trigger Object). So even if I got the previous step working, I'm not sure if I could assign the trigger outputs per channel (opposed to per Application). Also, I don't see any way to control the pulse duration (like the setup screen has) - and this is important to my application to allow for switch transition time. Has anyone else done something similar to this? Thanks in advance for all responses! Edited by: mr_matt on Apr 29, 2014 11:01 AM |
|
相关推荐
2个回答
|
|
出于沮丧,我刚从Labwindows重新生成了ActiveX控制器。
突然间,我有各种各样的对象和方法,我没有看到(包括IChannel下的GetAuxTrigger和缺少的所有AuxTrigger函数)。 所以不知何故,当我在一年半前第一次编写软件时,我必须得到一个非常旧版本的库。 以上来自于谷歌翻译 以下为原文 Out of frustration I just regenerated the ActiveX Controller from Labwindows. Suddenly I have all sorts of objects and methods I haven't seen (including GetAuxTrigger under IChannel and all of the AuxTrigger functions that were missing). So somehow I must have gotten ahold of a very old version of the libraries back when I first wrote the software a year and a half ago. |
|
|
|
btywyrww 发表于 2018-12-28 19:18 感谢更新。 以上来自于谷歌翻译 以下为原文 Thanks for the update. |
|
|
|
只有小组成员才能发言,加入小组>>
1287 浏览 0 评论
2375 浏览 1 评论
2194 浏览 1 评论
2064 浏览 5 评论
2951 浏览 3 评论
1112浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
753浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
927浏览 0评论
1287浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 11:46 , Processed in 1.728856 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号