在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 4408|回复: 3

[求助] Serial Port Interfacing of LABVIEW and Proteus

[复制链接]
发表于 2010-1-20 14:04:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
Hello,
I prepared this project few weeks ago. It is a kick start toall developers who wants to use LABVIEW to control the outside worldusing Serial Port. The project carries a real time testing of proteuscircuit controlled by a LABVIEW program. This is an exclusive demosince none carried out such a project between LABVIEW and proteus.

I have also created a generic PIC Serial Board that can be used to implement the simulated circuit.


Project Files:
[url=http://anonym.to/?http://ifile.it/yvpqlhm]LABVIEW Interfacing Assets by VBCoder[/url]


Software Requirements
  • LABVIEW 8.6.1 or above and NI DAQ installed to be able to use serial port
  • Proteus 7.2 or above
  • Virtual Serial Port Driver Software (included in the project file)
  • MikroBasic Pro for PIC 2009 (to display PIC source code)
  • Eagle PCB (version 4.0 or above)


                               
登录/注册后可看大图

Screen Shot of LABVIEW Program


                               
登录/注册后可看大图

Screen Shot of Proteus Circuit

The project mainly controls 3 LEDS from LABVIEW via serial port.

Step 1:
- After you install and register the Virtual Serial Port Driver Software, you will be able to connect 2 serial ports virtually.

make sure that you connected COM3 to COM4 by selecting them from the dropdown comboboxes and click on the "add button" as in the picture


                               
登录/注册后可看大图


Nowyou have two serial ports connected to each other. It means if you senddata out from COM3, it will be received on COM4 where we shall use tosend commands from LABVIEW to Proteus Circuit.

Step 2:
Open "proteus model" found in the project files included using ISIS. Then click on the virtual COM that emulates Serial Port Terminal. Then, Choose COM3 from the physical ports combobox.


                               
登录/注册后可看大图


Now double click on the PIC Microcontroller chip and make sure you choose "PIC Project.Hex"as your program source code. The MikroBASIC code is included in caseyou want to learn how command is interpreted which is simply checkingfor a number sent from LABVIEW. I have commented each line of code Iwrote.

Now, run your circuit and minimize it till performing the next step.

Step 3

Open the "LV Client Application.vi" which is LABVIEW program. The drop down Combbox will display all available serial ports on your machine. Select COM4. Remember, you already selected COM3 in proteus circuit.


                               
登录/注册后可看大图



Now Run the VI, click on "Connect" and you can control the LEDS in proteus circuit from LABVIEW


                               
登录/注册后可看大图



Step 4:
Youwill find the Schematic and layout of a generic serial interfacingboard I designed in case you want to implement a physical circuit.


                               
登录/注册后可看大图
  


                               
登录/注册后可看大图



Ihope this project gives you a good understanding of serial portinterfacing. If you wish to ask about any part of either labview codeor PIC code, I'll be more than happy to answer as soon as I have a timeslot.

If you learn anything from this project, please spread itso others can learn from it too. I just hope you point to our forum andnot copy and paste it  

                               
登录/注册后可看大图
 楼主| 发表于 2010-1-20 14:05:03 | 显示全部楼层
发表于 2011-8-28 20:00:43 | 显示全部楼层
感謝您!
感謝您!
感謝您!
用心認真求進步
專業提昇生產力
國家民族一定強
发表于 2011-12-14 03:15:11 | 显示全部楼层
thank you help
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

X

小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-7-6 05:21 , Processed in 0.018199 second(s), 8 queries , Gzip On, MemCached On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表