07-21-2009 09:00 AM
I am trying to determine the best way to interface a PIC microcontroller with LabView via UART. I need some sort of digital I/O hardware that can meet the following constraints:
-The PIC board has pinouts for USART TX and RX.
-Ultimately, the computer/Labview module will be responsible for communicating with up to 24 microcontrollers at once; this is 48 digital I/O at a bare minimum. Ideally, only a single hardware module would be used to connect to these devices (or a few daisy-chained together).
-This hardware module would ideally communicate with the PC via USB, although a serial connection would work as well. It needs to play nice with LabView, of course.
-Baud rates should be as fast as possible.
Does NI make any hardware that can accomplish this?
Thanks,
Ben
07-22-2009 02:03 AM
Hi Ben,
If you want to address so many devices I would use a RS-485 interface a use (or make it yourself) a protocol like ModBus so you can address devices.
On the software side it will take more time but on the hardware side you just need RS-485 transceivers and a simple 2-wire cable from device to device.
04-01-2013 03:00 AM
hello...i have this attached vi which randomly generate the data and plot it on the graph..as i stop the vi it will save the data in text file with time stamp..now here the need is that i have UART programming by which i have to plot the data coming through UART in this vi..plz help me by editing this vi for UART programming..
thank you..
04-01-2013 04:43 PM
Hello uv_0209,
Here are some useful resources that may be able to help you accomplish what you are trying to do.
https://decibel.ni.com/content/docs/DOC-17963
http://forums.ni.com/t5/LabVIEW-Embedded/How-to-send-recive-this-package-in-UART/m-p/984683
04-01-2013 11:51 PM
thank u sir..
here i have attached edited vi for plotting the data coming through UART..plz give me correction if there is any problem in it..plz reply as soon as possible..i need it urgently.
04-02-2013 05:34 PM
Hello uv_0209,
I do not see anything odd. You should test it and let us know if the behavior is the expected or not.
Regards
04-03-2013 03:11 AM
i tested the vi..i connect the adc program code generating ascii data..but on front panel i have gotcha data as 0 only..
12-14-2020 06:22 AM
Hello, Did you program is now working. Have you solved the problem why you are getting zero's?