01-03-2007 09:42 AM
01-03-2007 10:01 AM
ollsoninc:
The switch driver treats the switch as being in an unknown state if you bring it back from a PXI chassis standby. You should be able to go into MAX and reset the switch to return it to a known state. If this fails to work, then most likely the MXI bridge may need to be disabled and then renabled before attempting to reset the switch. You can do this step from the OS device manager. The bridge shows up under System Devices -> PCI-to-PCI bridge.
You can call the niswitch.h function called niSwitch_GetRelayPosition() from your C program to get the position of a relay. The header file is located under C:\Program Files\IVI\Include\.
Brian
01-15-2007 01:18 AM
Ok.. thanks!
But I need to do the reset from my visual C application is that possible?
//Anders
01-15-2007 07:13 AM
olssoninc:
Yes, you can call niSwitch_reset() to reset the switch from your C program. The function is located in niswitch.h.
Brian
01-15-2007 09:27 AM
It is not working with niSwitch_reset()... I have to disable the bridge in my system device.
I must reset the bridge from my C application.
//Anders
01-15-2007 11:00 AM
olssoninc:
Programmatic disable and re-enable of the bridge is not trivial. You'll need to call into the operating system to make this happen. Here are some references that may be helpful:
http://msdn2.microsoft.com/en-us/ms791235.aspx
http://www.experts-exchange.com/Programming/Wireless_Programming/802_11x_Dev/Q_22028057.html
Brian