11-06-2014 11:17 AM
The LED's are connected on any port of microcontroller. Is it possible to switch on and off the LEDs by giving commands using serial port??
11-06-2014 11:32 AM
(Please keep the subject line to a short descriptive sentence. Don't put your entire question there.)
LabVIEW can communicate via serial port. If the microcontroller listens to serial data, there must be a certain command to light a LED connected to a certain port. All you need is to check the manual to find out what the serial data needs to be.
11-06-2014 02:01 PM
Yes, you can have labview right to the Port configuration registers for the IO port you are using and it can set individual pins to high or low. Having the LEDs tied to those pins will let you control them individually.
What microcontroller are you using?
11-06-2014 11:47 PM
i am using Atmega32 microcontroller. I am using event structure for switching ON and OFF. but its not working. In event structure, i have included commands to send on the port on which LED's are connected.
11-06-2014 11:50 PM
Why don't you start a little more simple. Try to put together a VI that sets the value high. If you can turn the LED on, you can start to expand the architecture. Right now, you don't know which part of the code is the issue.
11-07-2014 07:24 AM
You need to configure the serial port as a USART. Then find what you write to the microcontroller here. They have example in C and Assembly on how to configure the port as a USART. Hope this helps.
11-07-2014 08:25 AM
It sounds like the OP is interfacing to an Arduino board.
If so, install Linx.