I have an issue with a VI for udp packages.
First the situation:
My audio amplifier has an rs232 connection to a pc. On the pc, I have a software (Lorris) to forward the rs232 port to udp. On a status change (e.g. volume) the amplifier sends e.g. "@VOL:-40\r". As udp packets, this is split in 1,2 or 3 byte packages, e.g. "@VO", "L:", "-4", "0\r". I haven't found a way around this (suggestions are welcome, it also occurs when using lorris to forward to tcp and combine it with the loxberry plugin tcp2udp, just happens less frequently and only seems to start after querying the amplifier).
But this brings me to my workaround and problem. I made 3 VI inputs (one for the first byte, one for the second byte and one for the third). My idea is to concatenate them (there is a wiki entry on text input to the miniserver) with subsequents blocks until \r is found. And this idea works... except for the fact that the VI's keep their value. The above example therefor concatenates "@VOL:O-4O0" as the block for the 3rd byte is always O.
Can the error output of a VI help me here? Or is there away to reset the value of a VI? I cannot look for a change if value as I don't know for sure that it should change, and the timestamps of the values (<v.t> in status blocks) are not exactly the same for parts of the same message.
Any ideas? Both on the udp thing or on getting the data from rs232 via something on pc to the miniserver...?
Thanks,
Jörg
Kommentar