Go to Post Woodie Flowers would like to win the Chuck Norris award. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition > LabView and Data Acquisition
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2007, 15:26
jaijaidin jaijaidin is offline
Registered User
no team
 
Join Date: Jan 2007
Location: dhaka
Posts: 2
jaijaidin is an unknown quantity at this point
Labview and communication with peripheral device help

hello, i am new with labview and i need some help.
My pc has labview 8.20 installed, with MAX version 4....

i want to communicate with my pc, using Labview, through serial port, with a antenna controller. This antenna-controller is adevice which accepts some commands (2 character commands) and responses on it (it means, controller should send a 2 character respons).

How can i configure it by labview?

Is there any vi correspons to serial port communication and can handle/send/receive character or string value?

please help me, if u want to know more, pls also let me know.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2007, 15:35
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Labview and communication with peripheral device help

First thing you want to do is install NI-VISA. This allows LabVIEW to talk with the serial ports. This also adds the Serial Communication VIs to LabVIEW.

You can find these VIs in the functions palette through the following path:

Data Communication -> Protocols -> Serial

These VIs will allow you to write and read bytes to/from the serial port.

If you need any other help let us know!
-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2007, 06:19
jaijaidin jaijaidin is offline
Registered User
no team
 
Join Date: Jan 2007
Location: dhaka
Posts: 2
jaijaidin is an unknown quantity at this point
Re: Labview and communication with peripheral device help

Quote:
Originally Posted by Danny Diaz View Post
First thing you want to do is install NI-VISA. This allows LabVIEW to talk with the serial ports. This also adds the Serial Communication VIs to LabVIEW.

You can find these VIs in the functions palette through the following path:

Data Communication -> Protocols -> Serial

These VIs will allow you to write and read bytes to/from the serial port.

If you need any other help let us know!
-Danny
thnx for your help....this VIs already installed. I have some time to play with this.
I have a further questions....if i send a character (or 2 character) command from labview through serial port (basically i have to use RS232), to the controller, can will it responses? The prevoius pascal program, controller did responsed with 2 CHaracter return......wht will i do for the same case in labview?
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2007, 19:17
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Labview and communication with peripheral device help

In LabVIEW we use a single VI for write, and a single VI for read. So, if you want to talk to a device, you would "write" your 2-character string to issue a command to the device, and then you would "read" a 2-character response from the device. The CMUCam2 camera communicates via serial in exactly the same way.

If the response is always known, but you just need to issue the command and wait for it to be executed, I would recommend just using the VI included in the CMUCam2 library called, "query for result from serial port.vi". This function is very nice because you can input what the command is, what you expect back, and you can provide a timeout in case it doesn't give you what you expected in the time specified.

If the response isn't always know, but the byte size is, then just use the primitive read/write functions - write your 2-byte string, then read up to 2 bytes from the serial port. It's fairly straightforward.

If you need examples, give me an example of what you're trying to do (exact communication) and I'll show you how it should look in LabVIEW.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Communication Problems with LabVIEW FRC Toolkit Jon236 LabView and Data Acquisition 1 28-12-2006 11:57
CMU Cam2 Java app (Help with Labview GUI) Team 1649 Programming 3 26-12-2006 14:25
organized way of communication with FIRST? archiver 2001 0 24-06-2002 04:20
Help with Autocad and Bryce 5 Keith Chester Inventor 0 25-03-2002 17:33


All times are GMT -5. The time now is 08:22.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi