04-25-2009 01:55 PM
I am working on a micro controller ( LM3S8962 ). I want to make a program running on my micro controller to communicate with PC via serial port. Does someone have a sample file for it?
I searched on this forum and NI example finder, but I couldn't appropriate one. All samples use VISA serial port tools, but there is no VISA serial port tools in LM3S8962 my micro controller project.
So I used serial tools (not VISA serial tools) to make VI running on a micro controller. Serial port Initialize tool and Write tool doesn't give any errors, but I cannot get data from a serial port. I attached my VI code.
I connect U0TX, U0RX, GND pins on my microcontroller and used port number 0.
I am new to Labview and micro controller.
Any help would be appreciatted.
Thank you.
04-25-2009 03:57 PM
Your statement "no VISA serial port tools in LM3S8962 my micro controller project' so you can't use VISA is just plain silly. LabVIEW and VISA run on the pc - not on your micro and you will not find any micro code examples on the NI site. You will have to look someplace else for code that you can install onto the micro.
Once you have done that, then first use the windows Hyperterminal program to debug your com settings and serial cable type. Then you can use the VISA examples.
By the way, the example program you posted uses VISA. The old driver has not been supported for several years and what you have is just wrappers over VISA functions. Look inside the VIs you have.
04-25-2009 06:38 PM
Thank you , Dennis.
I misunderstood the idea.
I found c library called ARM_Serial.c and functions for serial port in it.
I think I can control serial ports using the functions in the file.
When I have another questions or finish implementing it, I will post again.