02-04-2025 08:30 AM
Hi, all!
I've created a simple wrapper around the CVI niSwitch driver, and the initialization does not seem to work, continuously returning as:
> 15. niSwitch_init ("MatrixSim", VI_FALSE, VI_TRUE)
> Process ID: 0x00000C14 Thread ID: 0x00005508
> Start Time: 08:42:50.2144 Call Duration 00:00:06.1052
> Status: 0xBFFA0000 (IVI_ERROR_CANNOT_RECOVER)
This particular card is simulated, but it doesn't work on actual hardware either. I have no alias conflicts, running Windows 10, and the relevant software versions are below. Attempting to init with topology fails, along with init with options, and I'm at a loss as to what could be the issue here. I have verified that the real card does indeed work via the soft front panel--which shows nothing on I/O Trace--and have had a colleague show success using the same card in a VI, which did show the successful calls in I/O Trace. Any help would be appreciated. (I was able to successfully create and utilize a wrapper for DAQmx, however.)
IVI Compliance Package 20.0
LabView Runtime 2024 Q3 Patch 2
LabWindows/CVI Runtime 2020 f3
NI-Switch 2024 Q4 Patch 1
02-04-2025 05:11 PM
Edit:
The wrapper is in C, and I include the following libs from C:\Program Files\IVI Foundation\IVI\Lib_x64\msc on a 64 bit system:
niSwitch.lib
ivi.lib
IviSwtch.lib
I've tried niSwitch.lib alone to no avail, and all three of these also to no avail.