LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configurable Automated Process

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

Download All
0 Kudos
Message 1 of 2
(2,222 Views)

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!

Alejandro C. | National Instruments
0 Kudos
Message 2 of 2
(2,157 Views)