04-09-2012 03:01 PM
How to Atmel STK600 with microcontroller ATMEGA128 by using LabVIEW?
I am new in this and I guess all the signals are registered in EEPROM in bits that I see in AVR Studio 4.
Is it possible to read and write in LabVIEW without using AVR Studio?
Do I need to use MAX in order to recognize STK600 as a device?
04-10-2012 01:51 PM
Hi,
You are able to see the values trough AVR Studio because AVR holds the command set to read the values on the Microcontroller. Depending on the
C code that you have on your controller there is a possibility to send the values of the microcontroller registers to the serial port (UART). Also you can read
those values using NI-VISA driver. I f this is possible you will be able to read these values using MAX or LabVIEW as a visual interface.
Miguel Fonseca
Applications Engineer
National Instruments
04-10-2012 10:56 PM
Thank you for your response.
So as I understand MAX or LabViEW can't recognize the microcontroller if I connect the kit to the computer straight trough the USB cable, I need to do it through a NI-VISA driver, also I need to add read/write commands to the code.
MAX doesn't show Devices and Interfaces in My System tree. Is there a procedure how to install a device to MAX?
04-11-2012 08:01 AM
Yes, first you need to install NI-VISA driver and after that you must restart your computer. When that process is complete, you should be able to see any serial device under devices and interfaces.
For the USB case, it is possible that your device apperars as a COM port if your device is working under CDC (Communication device class).
04-12-2012 01:02 AM
I connected STK600 from RS232-DSUB9 connection to laptop using a cable. It installed driver software, but this just helps to recognise the cord as a USB to serial port (COM8) by the computer, but not in MAX.
Do I need a special program so that LabVIEW and MAX recognize STK600?
04-12-2012 09:40 AM
If you can see COM port 8, you should be able to see this port under devices and interfaces on MAX. You just need to install NI-VISA driver.