Showing results for 
Search instead for 
Did you mean: 
Reply

Labview interface with micro contoller

Solved!
Go to Solution

Labview interface with micro contoller

i am new to labview. I need to know whether DAQ card is needed to interface with micro controller? if no need then any one can you explain how to inter face microcontroller 89c51 with Labview...... if needed then explain how to interface?

 

JAGADESAN ASOKAN

J@G@De5@N
0 Kudos
Message 1 of 17 (782 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

Hi jagadees put more details.

Are you communicating with the microcontroller or reading digital signals from it???

0 Kudos
Message 2 of 17 (775 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

Need to communicating,

 

My application is monitoring irrigation system, need to control it by using Labview.

 

Then get data from microcontroller and display.Then instruct labview to microcontroller Regarding Setpoint and some other datas......                                                                    

J@G@De5@N
0 Kudos
Message 3 of 17 (756 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

In general, no, you don't need a DAQ, because in your case, the uC is the DAQ. Your challenge is to set up an interface between the computer and the uC (whether using LabVIEW or anything else).

 

In my opinion, the easiest way to accomplish that is to set up a serial interface with the uC, and use LabVIEW to control / read the uC serially using VISA. This would require the least amount of hardware and least cost. I2C, if available, is also a way to go if you have the interface.

 

 

Richard






Message 4 of 17 (744 Views)

Re: Labview interface with micro contoller

What hardware do you have to work with?  Is it an eval board with a couple of interfaces (serial, USB, etc)?  Or are you designing the hardware and considering how to interface with it?

We'll need more info to help with the LabVIEW side.

______________________________________________________________________
0 Kudos
Message 5 of 17 (720 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

Hi

If you are already acquiring data with the microcontroller, you only need to program a serial communication (RS-232 is easily, could be USB too) to transmit and receive data to your PC. Search the LabVIEW examples, you can find several sourcecodes for TX and RX serial data. Greetings,

 

Jorge N.

0 Kudos
Message 6 of 17 (706 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

Hi Jagadesan,

You can use the example vi - basic serial write and read with COM1 as VISA resource name if you have serial port on your PC.

If you dont have serial port you can use USB - RS232 serial adapter and check device manager for the COM port number and use that COMX as VISA resource name in the example vi.

You will need to write a program on 89c51 to read and write to serial port. If you are planning to use I2C then you will need I2C hardware for PC and need to write bit-banging program on 89c51, using Serial port is easier compared to I2C on 89C51.

 

Regards

Rajshekar P

0 Kudos
Message 7 of 17 (674 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

Thanks ... Broken....

J@G@De5@N
0 Kudos
Message 8 of 17 (664 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

By Using Serial port

J@G@De5@N
0 Kudos
Message 9 of 17 (663 Views)
Reply
0 Kudos

Re: Labview interface with micro contoller

thank you sir.....

J@G@De5@N
0 Kudos
Message 10 of 17 (662 Views)
Reply
0 Kudos