Hello,
Thank you for your answer!
This is unfortunate. There seems to be no way to programmatically differentiate between devices after reconnection or PC restart using the PLinApi other than writing the device id manually. If one could uniquely identify a device it would be possible to remember ...
Search found 3 matches
- Thu 5. Sep 2024, 14:32
- Forum: PLIN-API
- Topic: Reading the serial number of a PCAN-USB Pro FD with PLinApi
- Replies: 4
- Views: 2383
- Thu 5. Sep 2024, 10:38
- Forum: PLIN-API
- Topic: Reading the serial number of a PCAN-USB Pro FD with PLinApi
- Replies: 4
- Views: 2383
Re: Reading the serial number of a PCAN-USB Pro FD with PLinApi
Sure here is my C# code:
using System.Runtime.CompilerServices;
using Peak.Lin;
Console.WriteLine();
TLINVersion version = default;
PLinApi.GetVersion(ref version);
Console.WriteLine($"{version.Major}.{version.Minor}.{version.Revision}.{version.Build}");
ushort hardwareCount = default;
PLinApi ...
using System.Runtime.CompilerServices;
using Peak.Lin;
Console.WriteLine();
TLINVersion version = default;
PLinApi.GetVersion(ref version);
Console.WriteLine($"{version.Major}.{version.Minor}.{version.Revision}.{version.Build}");
ushort hardwareCount = default;
PLinApi ...
- Mon 2. Sep 2024, 15:39
- Forum: PLIN-API
- Topic: Reading the serial number of a PCAN-USB Pro FD with PLinApi
- Replies: 4
- Views: 2383
Reading the serial number of a PCAN-USB Pro FD with PLinApi
Hello,
I am trying to read the serial number of my device with the GetHardwareParam function of the PLinApi in C# 12/.NET 8. The value returned in the out parameter is always -1. I also tried initializing the hardware before the call. However, other values retrieved with the GetHardwareParam ...
I am trying to read the serial number of my device with the GetHardwareParam function of the PLinApi in C# 12/.NET 8. The value returned in the out parameter is always -1. I also tried initializing the hardware before the call. However, other values retrieved with the GetHardwareParam ...