Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 26, 2024, 10:24:26 22:24


Login with username, password and session length


Pages: [1]
Print
Author Topic: [Exclusive] Serial Port Interfacing of LABVIEW and Proteus  (Read 22177 times)
0 Members and 2 Guests are viewing this topic.
vbcoder
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 95
-Receive: 322


Nothing is True, Everything is Permitted.


« on: September 08, 2009, 08:01:58 20:01 »

Hello,
I prepared this project few weeks ago. It is a kick start to all developers who wants to use LABVIEW to control the outside world using Serial Port. The project carries a real time testing of proteus circuit controlled by a LABVIEW program. This is an exclusive demo since 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:
LABVIEW Interfacing Assets by VBCoder


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



Now you have two serial ports connected to each other. It means if you send data out from COM3, it will be received on COM4 where we shall use to send 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 case you want to learn how command is interpreted which is simply checking for a number sent from LABVIEW. I have commented each line of code I wrote.

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:
You will find the Schematic and layout of a generic serial interfacing board I designed in case you want to implement a physical circuit.

 




I hope this project gives you a good understanding of serial port interfacing. If you wish to ask about any part of either labview code or PIC code, I'll be more than happy to answer as soon as I have a time slot.

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





« Last Edit: September 08, 2009, 08:06:47 20:06 by vbcoder » Logged

Quote
Education is a progressive discovery of our own ignorance
Jeckson
Active Member
***
 Muted
Offline Offline

Posts: 110

Thank You
-Given: 54
-Receive: 6



« Reply #1 on: September 09, 2009, 12:39:57 12:39 »

WOW very good project......

VERY VERY NICE....

The only "defektif" the size PCB is bigger...to much waste PCB and didn't have ICSP or ICD connectors.
But still very great.......

How's about change the size of pcb and made ICSP and ICD connector also?

Thank's
Jeckson
Logged
fonak
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 76
-Receive: 197


« Reply #2 on: September 09, 2009, 01:40:46 13:40 »

Hi
Can you post a password to LV CLIIENT APPLICATION ?



regards !
Logged
darck_khronos
Junior Member
**
Offline Offline

Posts: 55

Thank You
-Given: 5
-Receive: 93

Khronoscorp Systems


WWW
« Reply #3 on: September 09, 2009, 03:39:58 15:39 »

Key for the Aplication Port Virtual Please
Logged
vbcoder
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 95
-Receive: 322


Nothing is True, Everything is Permitted.


« Reply #4 on: September 09, 2009, 07:03:24 19:03 »

Key for the Aplication Port Virtual Please

Here is a new version of Virtual Serial Port Driver 6.0 with Crack

Cheers
Logged

Quote
Education is a progressive discovery of our own ignorance
Jeckson
Active Member
***
 Muted
Offline Offline

Posts: 110

Thank You
-Given: 54
-Receive: 6



« Reply #5 on: September 10, 2009, 03:57:24 15:57 »

Kindly reduced the size of pcb area and added ICSP/ICD port..

I'm very interesting for my LABVIEW

Thank you
Jeckson

Quote
Kindly reduced the size of pcb area and added ICSP/ICD port..

Kindly do your own pcb work especially after you have already been warned about this by Wizpic earlier
« Last Edit: September 10, 2009, 11:15:32 23:15 by bbarney » Logged
kang2008
Guest
« Reply #6 on: September 11, 2009, 05:43:50 05:43 »

what 's password ?



Posted on: September 11, 2009, 06:10:41 06:10 - Automerged

wht? or error message?
Logged
vbcoder
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 95
-Receive: 322


Nothing is True, Everything is Permitted.


« Reply #7 on: September 11, 2009, 03:27:57 15:27 »

what 's password ?



Posted on: September 11, 2009, 06:10:41 06:10 - Automerged

wht? or error message?


Did you install NI DAQ? I believe not. To check it out, Click on the arrow in Serial Ports Discovery combobox, do you get a list of all serial ports available (physical and virtual ports)?

If not, The error message emplies that your port doesn't exist which indicates that LABVIEW can't see your serial ports. Don't type the port name by yourself, you have to select it from the enumerated list generated by LABVIEW as illustrated.
Logged

Quote
Education is a progressive discovery of our own ignorance
Jeckson
Active Member
***
 Muted
Offline Offline

Posts: 110

Thank You
-Given: 54
-Receive: 6



« Reply #8 on: November 27, 2009, 12:39:38 12:39 »

Hai
All

I just modified the pcb in case someone interensting with this project...
Reduced the size and added ICSP,capasitor and correct somewrong.

Hopefully will usefull for another's.

Regards
Jeckson

PS:
Just moving from smartwork,protel99 and circuitmaker to Eagle
Logged
vbcoder
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 95
-Receive: 322


Nothing is True, Everything is Permitted.


« Reply #9 on: December 14, 2009, 10:58:17 22:58 »

hai Vbcoder

the project id very interesting but i have a problem to download from IFile.it please give me another link to download the file

thanks alot

Project Download Link:
http://rapidshare.com/files/320933231/AIOVCOM.rar
Logged

Quote
Education is a progressive discovery of our own ignorance
ulderico
Junior Member
**
Offline Offline

Posts: 72

Thank You
-Given: 149
-Receive: 819


« Reply #10 on: December 19, 2009, 03:27:59 15:27 »

Works in windows seven?
Password is easy.
Logged
vbcoder
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 95
-Receive: 322


Nothing is True, Everything is Permitted.


« Reply #11 on: December 19, 2009, 10:58:06 22:58 »

Works in windows seven?
Password is easy.

It does work on Windows 7.
Logged

Quote
Education is a progressive discovery of our own ignorance
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4322


There is no evidence that I muted SoNsIvRi


« Reply #12 on: September 22, 2014, 06:57:37 18:57 »

Last Post Removed:
Don't post cryptic questions in 5 year old topic.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC