LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Switch driver. Init function, retuning invalid resource name

I am working with NI Switch driver. niSwitch_InitWithOptions(logicalName, VI_FALSE, VI_FALSE, "Simulate = 1, RangeCheck = 1, QueryInstrStatus = 0, Cache = 1", &instrumentHandle). The above function returns invalid resuorce name error. Even though the logicalName is present under logical names in IVI drivers of NI MAX. I used NI switch drivers 3.8 and 3.6.2. But no luck. Request you to help?
0 Kudos
Message 1 of 3
(3,776 Views)

Is that a PXI instrument?

 

You might have a logical name existing, but is it correctly configured (assigned) to a valid driver session and hardware resource?

 

edit: You can also try not using the logical name and typing the resource string directly into the init function.

If this works ok, then you can be sure that your resource string is correct and go configure the logical name, driver, resource, etc. 

Message Edited by ebalci on 10-06-2010 09:48 AM
S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 3
(3,769 Views)

It is a NI-DAQmx device. It is NI PXI 2501. I assigned NI switch driver to it. I don't have hardware. I used simulation. I used the same technique for DIO(NI PXI 4070), DMM(NI PXI 6509) also. They worked fine.

But I am not able to initialize switch only.

0 Kudos
Message 3 of 3
(3,752 Views)