08-21-2017 03:03 PM
Hi
I want to program my arduino with arduino compiler for Labview. I also have WiFi module. The TCP communication is working good. I attach VI's where on PC I send 3 doubles and arduino receive it, send back, PC read it and display it. What I want to do is sending commands for arduino, interpreting data send to arduino (calculations, etc.). How to do that? In arduino block responsible for reading data from serial puts out 1D array of U8. I don't know how to deal with it.
08-22-2017 01:48 AM
Hi kubajed,
in your arduino.vi you are using some serial communication to transfer data.
The 1D array of U8 will contain whatever you sent to the Arduino using the serial comm line. As you should know which data you sent to your device you should also know how to parse/convert this array…
08-22-2017 04:12 AM
As you can see in "send receive pc.vi" I send double flatten to string. It doesn't matter in which way I convert received in arduino data, it always is wrong. I don't know how to do that.
08-22-2017 06:15 AM
08-22-2017 07:00 AM
I don't know about it and arduino don't do that. Do you think that FlattenToString is good function for that case? What do you recommend if it isn't?
08-22-2017 08:41 AM
08-22-2017 09:49 AM
I read it again and I saw this input: prepend array or string size? There I can disable sending informations about size of data. But I notice another problem, this function generates specific string and I think that I am unable to read it on arduino. What do you think?
08-22-2017 09:57 AM
08-22-2017 10:02 AM
Could you show how to do that?
08-23-2017 03:33 AM