Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to interface Labview with microcontroller via rs232 ?

Status
Not open for further replies.

SPATAN

Full Member level 2
Joined
Aug 17, 2004
Messages
135
Helped
8
Reputation
16
Reaction score
3
Trophy points
1,298
Activity points
1,021
labview+controller

How to interface labview with microcontroller via rs232 ?
 

Re: labview+controller

I don't have an LabVIEW version here at home, only at my work so I can not test it...

but I have used it at my work, and I think you just have to set up an serial connection, serial write, serial read... serial settings stuff...

I don't think there is much difficult on this. I have used it in a project where we communicate with home made blackboxes over RS-232 there was no problem at all...

maybe you can download a driver for a scoop and see how that connection is set up on the national instruments website
 

Re: labview+controller

Hi ! mobile-it
Do you have example for this ?
Please help me .
I used LABVIEW 7.1
 

labview+controller

I have not tested it and I am not in front of PC with LabVIEW but RS-232 with LabView should be a breeze I think. LabVIEW is designed for all kinds of communications.

Is any thing in LabVIEW help documentation?
 

Re: labview+controller

Hi, it's just an easy job!

Look at the Functions Menu:

All functions -> Instrument I/O -> Serial
There are the following vis:

VISA Configure
VISA Write
VISA Read
VISA Close

Just use them for programming your application.
If you want you can use Instrument I/O Assistant instead.

Here i've got a little example, regrettably written in 6.1. The left part is
the configuration of the serial port followed by the reading function.
The other parts computing speed from a slot-car.

Remind that the serial read vi returns a string variable, that you perhaps
have to convert to a integer or double value.

With the best regards, Halabat.
 

Re: labview+controller

You must use these VIs (Virtual Instruments):

"Visa Configure Serial Port", to initialize a serial port.
The property node "Bytes at Port", to know the number of bytes currently available at the serial port.
"Visa Read", to read a specified number of bytes from the serial port.
"Visa Write", to write a string to to the serial port, and
"Visa Close", to close a device session, when you don´t need the serial port.
 

Re: labview+controller

hxxp://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C3279BDB00F42BEBE034080020E74861&p_node=DZ52363&p_source=external

hxxp://zone.ni.com/devzone/conceptd.nsf/webmain/8DECBF3E0B714BF3862568F9006E7851

hxxp://zone.ni.com/devzone/conceptd.nsf/webmain/C553228FD78A7ADD862568F9006E9129

hxxp://cnx.rice.edu/content/m12294/latest/


you can also just download a driver for a equipment (be sure it uses serial connection) from the ni.com website and learn it from that.




I only check this forum when I am home not at work :s so I can't send you my examples :s
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top