05-12-2017 04:11 PM
Hi Everyone,
Software:Labview 2013
Hardware:Arduino UNO
Problem description:
So try to establish the connection between Arduinoboard UNO and Labview .It seem to send me the same response everytime i send a message.
E.g if i writeor send "hello," "hi" or "gut", then the response would be "power on".
Does anyone here already saw this problem?
you can see my VI just under the text and tell, if something is wrong.
Thank you for your response.
Kinds Regard
Tagni
05-12-2017 04:52 PM
The sketch code would also be useful. It would not be the first time people are blaming LabVIEW for an Arduino coding issue.
05-13-2017 04:34 AM
05-18-2017 06:50 AM
Hi Guys,
can you please suggest me a VI , which can help me to solve the problem?
05-18-2017 07:40 AM
@Tagni wrote:
can you please suggest me a VI , which can help me to solve the problem?
Can you supply all of the information we already asked for?
05-18-2017 10:07 AM
Hi ;
Sorry it was my mistake.
This is the sketch you asked:
05-18-2017 11:45 AM - edited 05-18-2017 11:45 AM
Based on what I am seeing, you have to send a '#' to end your transmission. So if you send "hello#" then your Arduino will send back "hello". Of course, your buffer it limited to 8 characters. But what happens if you send a message longer than 8 characters? I do not have enough experience to say what will happen to your memory when you try to write outside of the array bounds (error? corrupt the memory?).
Typically, you will want to have a Line Feed (0xA, \n, LF) end your message. Then you can use Serial.readStringUntil(\n) in your Arduino to read the entire message in a single line of code. When sending a message back, use Serial.PrintLn. This appends a Carriage Return and a Line Feed to the data you are sending. Then on the LabVIEW side, you enable the termination character and just tell the VISA Read to read a large number of bytes and you will get your full message.
05-18-2017 02:55 PM
Hi ,
i tried the code you shown on the picture , but it seems not to work.
i don´t know, if you have any VI, which is corresonding to my problem please.
05-18-2017 06:38 PM
I think you need to explain exactly what you want to do. What is your end goal. For example "I want to turn on a LED on my Arduino using LabVIEW." Or "I want to send data from my sensor hooked to my Arduino to a LabVIEW chart." Depending on what you want to accomplish LINX might work better for you.
05-19-2017 02:55 AM
hi,
what you explained before, it´s true. That means, for example, if i write "hello#", then it must return "hello". This my goal
This progromm is to test , if the communication between my Board and Labview is working.
Because later, i want to something more complicate...but this one is the first step.