Alternating Data Byte Automatically

LIN Interface for USB
Post Reply
strykdlitning
Posts: 1
Joined: Thu 25. Apr 2024, 07:00

Alternating Data Byte Automatically

Post by strykdlitning » Thu 25. Apr 2024, 07:13

My OnAfterPublish contains:

Code: Select all

if (data[7] == 0xBC)
    {
        data[7] = 0xBD;
    }
    else {
        data[7] = 0xBC;
    }
    return true;
However, I don't want to push the Space Bar to send the data to the hardware. Is there a function call the script can make to automatically send the new data to the hardware?

End result is that data[7] alternates between 0xBD and 0xBC automatically.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Alternating Data Byte Automatically

Post by M.Heidemann » Thu 25. Apr 2024, 10:44

Hello,

No, this is not implemented in the C# interface as
this is usally handled by the scheduler.

Maybe using a schedule-table would be the better approach in this case.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply