Hi all,
I'm currently try to log two numeric data stream from different analyzers (via RS232 protocol).
I used to log with SerialInRecord for a 10hz output of anemometerconnected on a C1/C2 RS232 port, as:
SerialInRecord(ComC1,Analyzer1_string,&h02,0,&h03,Sonic_nbr_bytes_return,0)
I get the following string:
01,18,-00.03,-00.02,-00.04,+26.77,+1.7636,+1.7799,+2.0642,+1.9651,
When I try with the the other analyzer with the same function SerialInRecord with the same parameters, I do not get any string. I have some difficulties to interpret correclty the signification of BeginString, EndString, to adjust for a good output string.
When I try with SerialIn, Serial Out with the following parameterization, it looks OK:
SerialOut (ComC5," ",CHR(10),1,1)
SerialIn (Analyzer2_string,ComC5,0,CHR(10),500)
N_bytes_received=Len(result_str)
SplitStr(Analyzer2_in,Analyzer2_str,N_bytes_received,16,10)
SerialFlush (ComC5)
Withe the following corresponding string :
26.06.2025 14:30:49.72;1.33802E-7;1.35835E-7;4.28049E-4;4.35799E-4;2.34000E-2;2.03154E-6;2.06742E-6;3.37658E-7;3.43667E-7;8.39322E-9;2.23281E+1;2.88125E+1;2.87166E+1;7.00083E+1;0.00000E+0
This configuration looks OK since I get the two datastream at 10Hz from the analyzers but I would like to understand why I cannot use the same function SerialInRecord for both. Maybe the configuration of the second one in uncorrect.
Can you explain what is the best option I can use for my work?
All the best,
Dan