LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Sending Data From LabVIEW To Arduino

Hi!

 

I'm having some trouble... I'm trying to send to arduino data treated inside labview...

But it is taking to much time to iterate...

Delay time is 5 ms and the program has a frequency of 1 Hz more or less...

I receive data from arduino, and then if a contion is reached, the information is treated and it´s sent back to arduino by VISA write...

Could someone take a look to see if there is something wrong??

Thx in advance!

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

 

Since you have 2-way communications here, the problem could be at either or both ends.

 

  1. Can you post the Arduino sketch that generates the data?
  2. What is the message  from Arduino to LabVIEW? Is it always just the three elements?
  3. How often is a new message generated and sent by Arduino?
  4. Is it always the same length?  It looks like you're expecting three groups beginning with 'aa' and separated by a comma.
  5. What is the message termination character? You have selected line feed (\n).
  6. How important is it to read the serial port at 200Hz?  Do you expect LabVIEW or Arduino to set the pace? Or do you really just want to go as fast as possible?

 

JohnCS

0 Kudos
Message 2 of 2
(2,981 Views)