03-30-2019 11:57 AM
Dear All,
I want to make a project, and the first step is to get right measurements from Arduino Uno using Labview.
By using code from Arduino IDE Suite my breadboard setup is working perfectly. But when i upload custom firmware to Arduino so i can read measurements through Labview i get correct data, but there is a delay between every measurement by approx. 25 sec.
Can some give me an advice how can i correct this, because it is driving me crazy.
04-01-2019 07:00 AM
So i think i have an idea where the problem is. I see that when there are not enought byters in VISA buffer, the DHT VI gives me error 5003 and i dont get any readings. When i get indication that enought bytes are in buffer i get correct measurements. Any idea?
04-01-2019 08:10 AM
How come you didn't attach that VI in your first post?
You certainly have issues because with the new VI because you are checking for bytes at port every millisecond. It probably takes several milliseconds to get a complete message.
What does the response from your device look like? It is human readable ASCII characters? If so, you should make sure the termination character is enabled, read a number of bytes larger than your longest message, and your VISA Read will return a full message when it receives the termination character. Then you can get rid of the Bytes at Port check.
I don't know what error code 5003 means as that is not defined in LabVIEW.