11-07-2011 07:33 PM
Hey Everyone!
I want to the best way to import a set of instructions to send to a micro controller. I would like to import a file (text, csv, etc) with a list of commands in sequential order.
Often, before and after an instruction, I will need to call a sub vi to carry out a task to calculate variables for the instruction.
Attached is an example of instructions I'd like to send. The grayed boxed are Sub-VIs.
Also attached is some sample code I am playing with to import the instructions from a csv file
11-10-2011 09:32 AM
A good approach is trough NI-VISA serial communication commands, take a look at the overview here. Just make sure that your micro controller supports serial communication (typically RS-232). There are several threads that talk about this and they can help you to develop your application like Serial Communication with micro controller. I hope this helps!