Hello,
i still have a question about the function "GetHardwareParam" with the parameter "hwpDeviceNumber".
PLinApi.GetHardwareParam(lwHw, TLINHardwareParam.hwpDeviceNumber, out lnDevNo, 0);
The device number is not the number, which is storaged in the device. This number seemed to be reassigned ...
Search found 5 matches
- Wed 11. Jan 2012, 15:01
- Forum: PLIN-API
- Topic: PLIN API Read Hardware - Name
- Replies: 8
- Views: 13734
- Wed 11. Jan 2012, 14:06
- Forum: PLIN-API
- Topic: PLIN API Read Hardware - Name
- Replies: 8
- Views: 13734
Re: PLIN API Read Hardware - Name
OK, that was the problem.
Thank you!

- Wed 11. Jan 2012, 11:29
- Forum: PLIN-API
- Topic: PLIN API Read Hardware - Name
- Replies: 8
- Views: 13734
Re: PLIN API Read Hardware - Name
Hi,
the return-value is "errOK" and the hardware handle is "1".
code to get lin-devices with name and handle:
public static PLin_HandlerInfo[] GetDevices()
{
List<PLin_HandlerInfo> returnval = new List<PLin_HandlerInfo>(15);
PLin_HandlerInfo HandlerInfo = new PLin_HandlerInfo();
ushort ...
the return-value is "errOK" and the hardware handle is "1".
code to get lin-devices with name and handle:
public static PLin_HandlerInfo[] GetDevices()
{
List<PLin_HandlerInfo> returnval = new List<PLin_HandlerInfo>(15);
PLin_HandlerInfo HandlerInfo = new PLin_HandlerInfo();
ushort ...
- Mon 9. Jan 2012, 10:53
- Forum: PLIN-API
- Topic: PLIN API Read Hardware - Name
- Replies: 8
- Views: 13734
Re: PLIN API Read Hardware - Name
Hello,
ok, that works, but I get only an empty string back. The StringBuilder capacity is 30 and the length 0.
ok, that works, but I get only an empty string back. The StringBuilder capacity is 30 and the length 0.

- Thu 5. Jan 2012, 15:52
- Forum: PLIN-API
- Topic: PLIN API Read Hardware - Name
- Replies: 8
- Views: 13734
PLIN API Read Hardware - Name
Hello,
I want to read the hardware-name of the device "pcan-usb pro" using PLIN-API 11.01.2011 - Version 2.2.28.71.
code:
Peak.Lin.TLINError lLINErr;
StringBuilder lnName = new StringBuilder();
lLINErr = Peak.Lin.PLinApi.GetHardwareParam(lwHw, Peak.Lin.TLINHardwareParam.hwpName,lnName,47 ...
I want to read the hardware-name of the device "pcan-usb pro" using PLIN-API 11.01.2011 - Version 2.2.28.71.
code:
Peak.Lin.TLINError lLINErr;
StringBuilder lnName = new StringBuilder();
lLINErr = Peak.Lin.PLinApi.GetHardwareParam(lwHw, Peak.Lin.TLINHardwareParam.hwpName,lnName,47 ...