04-27-2015 09:41 PM
I'm glad to hear you are figuring it out and getting it working.
Good luck.
04-27-2015 10:03 PM
04-27-2015 10:08 PM
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?
04-27-2015 10:28 PM
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.
04-27-2015 10:45 PM
"Humedad" and " Temperatura" are wornking rigth, but the others including "Encendido" responde lost signal, I don't know why 😕
04-27-2015 11:55 PM
Now it works fine, but works every 14 seconds haha it doesn't work at real time, but it's fine, thank to everyone 🙂
04-28-2015 06:40 AM
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.
04-28-2015 08:27 AM
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".
04-28-2015 08:35 AM - edited 04-28-2015 08:40 AM
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.
04-28-2015 08:37 AM
No my friend, all my combo box are full, look it: