This interface implemented the PCAN-Light library.
What im currently trying to do is to, based on a text file, perform the following actions:
1. Send specific commands
2. Wait for the specific CAN-ID before proceding to the next instruction
Heres how these text files look like:

So far i have no problem sending the extracted commands, but im having a hard time figuring out how i am supposed
to detect when a specific CAN-ID has been received, heres how my method that executes these send commands from the text file looks like:

When using Trace on PCAN-View, i can see that after sending the message command, the actuator is replying back with the
CAN-ID that is specified on the text file, the problem that i have is how i am supposed to read and detect these CAN-ID's in my interface.
I know that PCAN-Light is outdated but i think that what im asking for is possible to do, i will greatly appreciate any feedback.
Thank you in advance.