09-07-2010 04:32 AM
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
Solved! Go to Solution.
09-07-2010 04:44 AM
Hi jagadees put more details.
Are you communicating with the microcontroller or reading digital signals from it???
09-07-2010 07:34 AM
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......
09-07-2010 08:08 AM
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.
09-07-2010 11:16 AM
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.
09-07-2010 01:42 PM
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.
09-07-2010 11:17 PM
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
09-08-2010 12:00 AM
Thanks ... Broken....
09-08-2010 12:01 AM
By Using Serial port
09-08-2010 12:03 AM
thank you sir.....