PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a simulated NI-SWITCH device and use it in my application?

 
Hi,
 
I am  trying to create a simulated device in NISE to develop applications on a development machine that doesn't have PXI hardware attached.
 
The following is from the help file. Highlighted step fails because the option NiSwitch is not available from the ring control.
I need to have PXI2565/2569 and similar devices
 
 
Thanks
 
 
 
How do I create a simulated NI-SWITCH device and use it in my application?
Virtual switches are useful for creating your NI Switch Executive virtual device without physical hardware. To create a virtual switch, you need to create an IVI logical name and a corresponding driver session by completing the following steps:
Launch Measurement and Automation Explorer (MAX).
Expand IVI Drivers.
Right-click Driver Sessions and select Create New.
**On the Software tab, select niSwitch under Software Module.
On the General tab, select Specific Driver under Simulate With.
Type Topology: followed by the topology name under Driver Setup (see below for information on topology name).
Right-click Logical Names and select Create New.
Under Driver Session, select the driver session created in steps 3-6.
Save your IVI configuration by clicking Save Configuration.
In NI Switch Executive, your virtual switch appears in the list of available switches.
To find the topology of your National Instruments switch, complete the following steps:
In the NI Switches Help, expand Devices.
Select the switch module you would like to simulate.
For each switch module there is a table that lists the topology type and its software name. Make sure you use the first topology name and not the constant name in parenthesis. For example if you want to simulate an NI SCXI-1127 in 64x1 Mux mode, the topology name is 1127/1-Wire 64x1 Mux, not NISWITCH_TOPOLOGY_1127_1_WIRE_64X1_MUX.
0 Kudos
Message 1 of 4
(3,954 Views)

Hi AR15,

So you have NI Switch Executive installed and want to create a simulated switch so you can develop your program. Have you installed the NI-SWITCH drivers? Even though you do not have a switch in your development system you will need the NI-SWITCH drivers installed in order to simulate one.  Once you install NI-SWITCH that option should show up under the Software Tab as a software module. The newest version of the drivers can be found here.

If you do have NI-SWITCH installed and this still is happening can you tell me what version of NI Switch Executive, NI-SWITCH, and LabVIEW you are using?

Thanks
Nathan
NI Chief Hardware Engineer
0 Kudos
Message 2 of 4
(3,947 Views)

Hi Nathan,

 

Many thanks, everything worked all right after I installed the drivers.

The only difficulty was getting the exact syntax for the topology statements.

Can I do the same with DAQ devices such as PXI6221?

 

Regards

Tony Aswad

0 Kudos
Message 3 of 4
(3,920 Views)

Hey Tony,

Yes, you can simulate most of our DAQ devices. The Developer Zone article, NI-DAQmx Simulated Devices, goes over how to create and use simulated DAQ cards. For a list of devices that cannot be simulated see the Knowledge Base article, Why Can't I Simulate my DAQ Device in Measurement & Automation Explorer? Let me know if you have any questions and have a great week.

Thanks,

Nathan
NI Chief Hardware Engineer
0 Kudos
Message 4 of 4
(3,907 Views)