Go Down

Topic: How to intergrate Arduino code to a Labview interface ? (Read 2492 times) previous topic - next topic

so3ody

Aug 11, 2014, 11:25 am Last Edit: Aug 11, 2014, 11:36 am by so3ody Reason: 1
Hi

I already have an Arduino Due code and I just want to control a few elemts of it through an LABVIEW interface.

All the example I found just controls the Arduino board directly through  labview e.g. LED esc..

How can I integrate my arduini code to labview and just contorl 2 parameters of my code. ?

robtillaart

You should define a protocol over serial between the Arduino - Labview.
Then you can send anything sensor data or commands
you need to pay attention to how you format data packets; typically you use a layout like this

<field:value>

< is start of packet
field is an identifier of the sensor  (1 byte is often enough)
: is a separator
value is the value ( 2 or 4 bytes)
> is a stop of packet

you can add checksums, timestamps, sequence numbers etc to make it more robust


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

so3ody

Do you have such a ptotocoll for arduino due as an example `?

robtillaart

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

JV1992

Greetings for every one

i have a really big doubt about arduino and LabView

is it possible that i make an 16 channel datalogger that saves all data in a .txt file, this file it's generated every 24 hours as an "report" and also at the same time that i can "see" the data from the sensors on a labview inteface real time

i will use an Arduino MEGA 2560 and ethernet shield

hope you can help me

by the way, if you do not understand what i've wrote here  i'm sorry, english is not my mother language

robtillaart

IN theory possible, in practice I miss a lot of information

16 channels digital?
or analog?
how many samples per second?

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up