05-09-2017 01:47 PM
I am writing a test procedure in LabWindows. I want to talk to a microcontroller in order to tell it when to control a motor. I am considering using one of Atmel's mega chip series; however, I have never performed this task. I am curious if there are certain precautions that I need to take into account before I choose a mcu and/or features that are advantageous for LabWindows. The plan was to use some type of serial interface, but again, maybe there are better interface methods for this sort of thing. Are there any developers with this sort of experience that may have some general thoughts about this sort of task?
Thanks,
Alex
Solved! Go to Solution.
05-10-2017 01:30 AM - edited 05-10-2017 01:31 AM
If you are considering to use atmega series chips, there is a readily available prototyping platform, Arduino. It allows to immediately start developing your CVI code. If you get an Arduino Uno, it is connected through USB port which behaves like a virtual COM port.
First precaution is; every time you open the com port (OpenComConfig) the Arduino resets. Since there is a bootloader on Arduino and it delays the program start a little. If you to put a 2-3 second delay after you open the port you'll be OK.
Second, the atmega chips do not have big UART buffers. So do not send too much at a time. Use start/stop characters and devise a nice protocol to transfer data with some handshake. So make sure you are in-sync with the processor.
Hope this helps,
05-19-2017 11:55 AM
I have decided on using an ARM Cortex 7 based dev board. I assume LabWindows can accept the MCU via some type of UART protocol?
05-22-2017 04:15 AM
It is not about LabWindows accepting the MCU, it is about your computer accepting it as a "COM port".
If your computer recognizes the connection as a serial communication and assigns a COM port number to that connection, then LabWindows can and will "accept" it as an UART connection to your MCU.
The protocol is up to you to decide.
02-22-2018 03:05 AM
I have the same question I want to talk to a microcontroller to tell him when to control an engine (support that carries a camera) using the ARDUINO card under LABWINDOWS; However, I have never done this task and I am new to this software. I am curious to know if there are some precautions to take into account to choose features that are advantageous for LabWindows as interface / function , manipulation ..,. Are there any developers with this type of experience who could have ideas and who could help me ??? thks
02-22-2018 05:31 PM
I recommend you to create a new thread with the question to have everything well documented.
02-23-2018 02:17 AM
thank you ill do it
^^
rose