• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Matt
    3. Best
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 33
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by Matt

    • RE: NaNs in HMI chart

      @martin-kudláček Okay, thanks. After posting yesterday I managed to figure out the communication errors I was getting, so preventing the NaNs from messing up the chart is less of an issue now.

      posted in Mervis
      M
      Matt
    • RE: SimpleParser documentation?

      Thanks, @tomas_hora. I've just gone ahead and written my own in ST, based off the custom serial protocol example. I'm not sure if that sample actually works for serial communications, but for TCP I had to split Case 3 into 2 cases:

      3:
      	if io.getportstatus(handle) = 0 then 
      		state := 4;
      	end_if;
      	
      4:
      	received := io.readport(handle, adr dataRecv[0], 100);
      	if received > 0 THEN
      		output_string := bytes_to_string(adr dataRecv[0], received);
      		output_length := len(output_string);
      		command_out := command_in;
      		last_output_time := getutctime();
      		state:=5; 
      	END_IF;
      

      Not doing this seemed to result in the read buffer being reset before the bytes could be read.

      posted in Mervis
      M
      Matt