I tried all 5 options for the "CallingConvention", neither of them seem to work. So I am not sure if that is where the problem lies.
The supplier has some documentation but that is based on C/C++.
Here's the declaration from the Lasal32.h header file:
#define LSL_ONLINE_CAN_BAUD615K 0
#define LSL_ONLINE_CAN_BAUD500K 1
#define LSL_ONLINE_CAN_BAUD250K 2
#define LSL_ONLINE_CAN_BAUD125K 3
#define LSL_ONLINE_CAN_BAUD100K 4
#define LSL_ONLINE_CAN_BAUD50K 5
#define LSL_ONLINE_CAN_BAUD20L 6
#define LSL_ONLINE_CAN_BAUD1M 7
LSL_BOOL LASAL32_EXPORTS Online(const char* szComm, uint8_t uBaudRate, uint8_t uPcStation, uint8_t uSpsStation, uint8_t uAutoInit);
In a C# example from the supplier the function is declared as follows:
public static extern bool Online(string szComm, byte uBaudRate, byte uPcStation, byte uSpsStation, byte uAutoInit);
Can anything be told from this?