LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending an Array of datas from Labview to Arduino in each buffer

Hi guys,

I am doing a project which required me to send an array of data which is to be calculated in Labview and then send to Arduino in each buffer.

I have viewed an intresting topic

https://decibel.ni.com/content/thread/16932?start=0&tstart=0

which might be worth noticing. Anyhow, i reallly need help on my project which i am really stuck.

Please someone, help me on how i can send an array of data to Arduino either using LIFA or VISA, and also how can i receive them on arduino sketch.

Regads,

Fazilati

0 Kudos
Message 1 of 2
(3,624 Views)

If the data in the large array is integer or floating point numbers then use VISA and transmit the data as binary data.  See: sections 4.6, 4.7 and 4.8 in the web page at:<https://www.safaribooksonline.com/library/view/arduino-cookbook-2nd/9781449321185/ch04.html> If the data is double floating numbers, then use the same method used to transmit long integers for double floating point numbers.  In Arduino both long integers and double floating point numbers are 4 bytes in length. 

LIFA is not appropriate for transmitting large arrays.  LIFA uses packets 15 bytes in length to transmit commands and data.  You would also need develop a VI for sending data and add a custom function to LIFA for receiving data.

For additional information on transmitting binary data do a Google search on "Arduino binary data". 

hrh212

0 Kudos
Message 2 of 2
(3,195 Views)