07-16-2023 02:36 PM
I used Ni Visa to receive an image from a ESP32 With cam, image raw data ("string bytes") and save it in file.txt and convert it to jpg, when i convert it I found that the data is corrupted and also image is corrupted as shown i will attach the vi and the file.txt in which i saved the received data figure
07-16-2023 03:00 PM
07-17-2023 12:45 AM
07-17-2023 02:33 AM
how to switch off EOL ?
the image string bytes that I received look like that.
07-17-2023 02:36 AM
here a 2019 version
07-17-2023 02:42 AM - edited 07-17-2023 02:45 AM
Hi Mohamed,
@Mohamed_Eid wrote:
how to switch off EOL ?
Read the LabVIEW help for both WriteFile functions in your VI. The help explains all the details:
You also should think about automatic TermChar handling for your serial communication: this may influence your algorithm, too. (Again: read the help for the ConfigureSerialPort function!)
Watch this video to learn about proper/correct serial communication with LabVIEW…
Why do you open/close the file in each iteration of your loop? Those functions belong before/after the loop, the same way as VISAOpen/Close!
What's the point of setting a VISA timeout of 10M ms = 10k s ~= 2.75 h???