VB编写的GPIB控制设备和串口控制产品的测试系统程序(VB wrote GPIB control device and serial port control product test system program).docVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
VB编写的GPIB控制设备和串口控制产品的测试系统程序(VB wrote GPIB control device and serial port control product test system program)
Install the NI488.2 GPIB driver when you use it on your computer, adding niglob.bas and vbib-32.bas to the VB module
Private Declare Sub Sleep Lib kernel32 (ByVal dwMilliseconds As Long) delay control call
run load
Private Sub Form_Load ()
Textsend. Text = pd 1 the send column to give an initial command
serial port initialization
MSComm1.Com mPort = 1 sets the communication port number COM1
MSComm1. Settings = 9600, n, 8, 1 sets the serial port 1 parameter
MSComm1. InputMode = 0 receives text type data
End Sub
the PD1 calibration
Private Sub Pd1cal_Click ()
Textcal. Text =
Dim Dev_ATT As Integer ATT address
Dim Dev_OPM As Integer OPM address
Const ARRAYSIZE = 1024 read cache area bytes
Dim PowerVal As String * ARRAYSIZE light power read value power
Dim Tpower As String light source total power
Const Initial_ATT = 13 att initial attenuation
Dim ATT As String ATT attenuation
Const Sleep_ATT = 3000 ATT decreased latency and OPM read the value
Const Sleep_Comm = 100 serial communication latency
Const Sleep_Cal = 6000 PD calibration delay
Const Offset_Pd = 0.5 PD compensation
Dev_ATT % = ildev (0, 28, 0, T3s, 1, 0)
Dev_OPM % = ildev (0, 20, 0, T3s, 1, 0)
Ilclr Dev_ATT %
Ilclr Dev_OPM %
Ilwrt Dev_ATT %, : INP: ATT Initial_ATT, Len ( : INP: ATT Initial_ATT) send the attenuation value to ATT
Ilwrt Dev_ATT %, : OUTP 0, Len ( : OUTP 0 ) close ATT
MsgBox ( please connect light source power probe 1 )
Ilwrt Dev_ATT %, : OUTP 1, Len ( : OUTP 1 ) open ATT
Sleep Sleep_ATT delay
Ilwrt Dev_OPM %, : read1: chan1: power? , Len ( : read1: chan1: power? ) send a read power instruction
Ilrd Dev_OPM %, PowerVal $, Len (PowerVal $) read the light power return value
Tpower $= PowerVal $+ Initial_ATT to calculate the total power of the light source
Ilwrt Dev_ATT %, : OUTP 0, Len ( : OUTP 0 ) close ATT
MsgBox ( please connect the light source to 1A )
Ilwrt Dev_ATT %, : OUTP 1, Len (
您可能关注的文档
- 汉语普通话和英语语音的差别(The difference between Chinese and English phonetics).doc
- 汉匀超级充电器最新说明书(The latest manual of the super charger).doc
- 汉语言文学毕业论文语言学方向《寻甸回回对数词的特殊指称》_百度文库...(The linguistic direction of Chinese language and literature in linguistics, the special reference of the search and reply to mathematical words.).doc
- 汉中市快速代评助理(中级)高级工程师职称评定评审及申报(Evaluation and evaluation of senior engineer titles in hanzhong city rapid substitute (intermediate)).doc
- 汉字与ascii码区别(The difference between Chinese characters and ASCII characters).doc
- 汉字偏旁部首的特点及写法_马广健毛体书法_20141104_202745(The characteristics and writing of the Chinese characters on the side of the Chinese characters).doc
- 河北登高证培训上机考试试题答案判断-copy(Hebei denggao certificate training test test question - copy).doc
- 河北地区成为经济中心(Hebei province became an economic center).doc
- 河北乐亭一中2011录取结果(Hebei leting 2011 admission results).doc
- 河北润田产品简介(Hebei runtian product introduction).doc
- VB程序设计上机题目(VB program design on the topic).doc
- VB记录2(VB record 2).doc
- VB中位操作运算函数(Operation function in VB).doc
- VFCL运行原理1(VFCL operation principle 1).doc
- vf试题(Vf test questions).doc
- VGA延长线制作及故障解决(VGA extension cord production and troubleshooting).doc
- VLAN(VLAN).doc
- v-ray 常见问题(Common problems with v-ray).doc
- vray 灯光和阴影(Vray light and shadow).doc
- VRAY灯光介绍(VRAY light).doc
最近下载
- 沙溪镇工业污水处理厂工程项目环评可研资料环境影响.docx VIP
- 2012ESC心房颤动诊疗指南中文版_图文.doc VIP
- 销售的心理学培训.pptx VIP
- 2025-2026年秋季第一学期学校德育工作计划及安排表.doc VIP
- 2025年粮油储存一规定两守则模拟培训考试题库(及答案).pdf VIP
- 咨询发布—2025年中国MEMS行业现状、发展环境及深度分析.pptx VIP
- 2020年7月英语4级真题!.doc VIP
- 2024年秋季高一入学分班考试模拟卷(全国通用)化学试卷.docx VIP
- 人教版九年级上册数学二次函数同步练习.pdf VIP
- 2025年国培卫健、粤医云(公卫)6月基层公共卫生服务能力提升项目参考答案.docx VIP
文档评论(0)