LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lectura del puerto serial e impresion de datos

Solved!
Go to solution

I'm glad to hear you are figuring it out and getting it working.

 

Good luck.

0 Kudos
Message 21 of 49
(1,893 Views)
The println function writes the text followed by a cr/lf. I don't understand why you would do a print and then a println.
0 Kudos
Message 22 of 49
(1,887 Views)

Yeah man, now I understand it, but when i try to set time the values for " Altura", "Latitud" , y " Longitud" dissapear. 😕 Do you have any idea what is happening?

0 Kudos
Message 23 of 49
(1,884 Views)

If println is putting in a CR and linefeed automatically, then possibly the CR is causing the string indicators to roll over.  Try making the string indicators larger vertically.  Or put them in \codes display mode and see what characters it shows.

0 Kudos
Message 24 of 49
(1,869 Views)

"Humedad" and " Temperatura" are wornking rigth, but the others including "Encendido" responde lost signal, I don't know why 😕 

0 Kudos
Message 25 of 49
(1,858 Views)

Now it works fine, but works every 14 seconds haha it doesn't work at real time, but it's fine, thank to everyone 🙂

0 Kudos
Message 26 of 49
(1,848 Views)

What command are you sending with "Encendino"?  It is a string control, more specifically a combobox.  Your's is empty, so if you are sending an empty string then waiting for a response, you are waiting for nothing and are probbably getting a time out error.  Put an indicator or probe on the error wire after it.  If so, the commands after it won't execute either because most LabVIEW functions won't execute if there is an incoming error.

 

Make sure whatever command you want to set there is actually being searched for within your Arduino code.  You may want to have an ELSE at the end of your code that will send an error message by default in the event your code receives a command that isn't part of its valid command set.

0 Kudos
Message 27 of 49
(1,835 Views)

Yeah man, you're right I'm receiving this error:  I don't know why, because in my Arudino code I'm reading just a string like "L" and the Labview code send me this "L".

error.PNG

0 Kudos
Message 28 of 49
(1,829 Views)

For some of your items, you are sending whatever string is in the combobox.  Those comboboxes are empty.  So what is your Arduino going to send if it receives nothing?  So in LabVIEW you are waiting until you timeout for a response to an empty message.

 

If you do wind up sending one of the values in your combobox such as "FILTRO1", that won't won't work either.  Your Arduino code is only set up to read a single character at a time.  It can never match a string of 7 characters.  It will read each character one at a time.  It will do nothing for any characters aren't in your case structure.  Finally when itt gets something that matches such as the "L", it will send that data.

0 Kudos
Message 29 of 49
(1,823 Views)

No my friend, all my combo box are full, look it:

error.PNG

0 Kudos
Message 30 of 49
(1,819 Views)