I am trying to read two RS485 instruments with different ID (thies vane 4.3151.00.400) in one COM but I didn´t manage to separate the strings coming from the two instruments.
I tried sequentialmode and other waitstring combinations, but I still didn´t figure out how to use the the serialinrecord instruction correctly.
The format coming from the vane is:(<STX>xx.x xxx.x*HL<CR><ETX>)
I guess there is a way to do it althought I didn´t find it yet.
Could somebody please send me a clue?
' First (ID=00)
Dim ThiesOutput0 As String *35 ' make Public to debug
Dim NBytesReturned0 ' make Public to debug
Alias ThiesParsed0(2)= WD_TOP
' second (ID=01)
Dim ThiesOutput1 As String *35 ' make Public to debug
Dim NBytesReturned1 ' make Public to debug
Alias ThiesParsed1(2)= WD_CTRL
SerialOut (ComC5,"00TR00003" & CHR(13),"",0,0)
SplitStr (ThiesParsed0(),ThiesOutput0," ",2,5)
SerialOut (ComC5,"01TR00003" & CHR(13),"",0,0)
SplitStr (ThiesParsed1(),ThiesOutput1," ",2,5)