01-23-2026 02:33 PM
You can also look at Hooovahh's CAN blog
https://hooovahh.blogspot.com/2017/03/can-blog-introduction-and-downloads.html
It has drivers for Kvaser.
01-23-2026 02:42 PM
@dkfire wrote:
And how is that lib call setup ?
SAme as the others except this on is set to run in the UI thread instead of any thread
01-23-2026 03:29 PM
@RTSLVU wrote:
I don't know what this is telling me.
...
Probably a mistake on my part somewhere. Probably the two integers need to be static (or const, or both). Since we saw that the dll can be called from within 32bit LabVIEW, I think there's not much diagnostic value left in determining if the dll itself is working properly.
For completeness, I guess this should work
cd "C:\Program Files (x86)\Kvaser\Canlib\Bin\"
function Can-InitializeLibrary{
$Signature = @"
[DllImport("canlib32.dll", EntryPoint = "canInitializeLibrary")]
public static extern void canInitializeLibrary();
public static void InitLibraryExport() {
canInitializeLibrary();
}
"@
Add-Type -MemberDefinition $Signature -Name InitLibraryType -Namespace User_
[User_.InitLibraryType]::InitLibraryExport()
}
Can-InitializeLibrary
01-23-2026 03:48 PM
@RTSLVU wrote:
@dkfire wrote:
And how is that lib call setup ?
SAme as the others except this on is set to run in the UI thread instead of any thread
I need to check how mine is setup.
But you can try to change the Thread. Could be that is has loaded the lib in ui thread, and can't find it in the other threads.
01-24-2026 09:00 AM
@dkfire wrote:
@RTSLVU wrote:
@dkfire wrote:
And how is that lib call setup ?
SAme as the others except this on is set to run in the UI thread instead of any thread
I need to check how mine is setup.
But you can try to change the Thread. Could be that is has loaded the lib in ui thread, and can't find it in the other threads.
Did a check on the working production code, that dll call is set to Any thread.