|
我在电脑上安装了NI Switch Executive,然后安装了NI的开关模块。NI Switches已经在MAX下的DAQmx Devices下面出现。我想使用这些开关在Switch Executive里创建Virtual Device,但是这些开关并没有在Available Switches List里边,如下图所示,只有Sample Matrixs。
我知道NI Switch Executive通过IVI Driver获取NI或者第三方的开关。当我打开MAX中的IVI Drivers页面,可以看到Sample Matrix的driver sessions和logical names,但是我的开关并没有相应的内容。
我本以为NI开关的IVI Driver Session和Logical Name都会自动生成。是否我的理解有误?我需要像对第三方开关一样,手动创建driver session和logical name吗?
你的理解是正确的。NI Switch Executive (NISE)检测到已安装的NI开关,会自动创建logical name和其他需要的IVI配置。但是,这需要系统中具备 IVI Compliant switch driver。
安装NI Switch Executive并不会安装NI-SWITCH驱动,链接如下。NI-SWITCH是NI开关模块的 IVI Compliant switch driver,授权NISE自动创建IVI logical name和driver session。
安装NI-SWITCH驱动之后,你可以重试创建Switch Executive Virtual Device。你可以看到开关模块已经在Available Switches List中了。Logical name就是自动创建的NI-DAQms资源名_ivi。例如,PXI1Slot2_ivi.
注意:你可以通过NI-DAQmx开关功能控制NI开关模块。这就是为什么即使没有安装NI-SWITCH驱动,我们还是可以在MAX中能够看到开关模块。但是,NI-DAQmx开关功能并不支持IVI,所以不能用于在NISE中创建IVI Logical Name。
|