Any updates on this?
I'm building an HMI with a chart in it. The chart is plotting a few values that I set to NaN when there are communication errors, etc. The problem is that the chart doesn't appear to handle NaNs correctly--it just interprets them as something like -5*10^38 and ruins the scaling on the vertical axis. Is there a way to perhaps have the chart ignore NaN values or otherwise pass it blank values?
Am I to understand from this thread that SSCP communications between UniPi devices is broken in the released software? How long until a fix is released? I am having the same problem described above and need to get my devices talking to each other.
I started creating my own function to do it named "string_to_real" and then got an error saying that the function already existed. It does show up in the autocomplete list, and I can build a project using it, but it doesn't appear to work.
EDIT: It looks like it only works for single-character strings. "2" gets converted to 2, but "23" gets converted to 0.
I've got a USB-to-serial device as that's currently identified as /dev/ttyUSB0. How do I open a connection to this device with io.openport? The file at https://files.unipi.technology/s/public?path=%2FSoftware%2FMervis%2FExample projects%2FCustom serial protocol shows that I need a definition in the format 'serial:6:9600,8,N,1'. I'm guessing the '6' is identifying which serial port to open, but where is that number mapped to a device?