Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I programmatically check all of my PXI cards to verify they're "alive"?

11 views
Skip to first unread message

needinfo

unread,
Jul 18, 2008, 1:10:17 PM7/18/08
to
How can I programmatically check all of my PXI cards to verify they're "alive"?  I'm looking for a live query of some sort to see if the module is still there and alive.  As a test, I have removed one module, and can't seem to find a way to report that it's no longer there.  The VISA search functions says it searches the bus (with the right option selected), but it still returns data for the missing module.  Also, the DAQmx properties still return values (plus I need a universal method since not all are DAQmx devices, or even NI for that matter).
Thanks.

needinfo

unread,
Jul 22, 2008, 8:40:15 AM7/22/08
to
I am trying to simulate a card failure and the ability to detect that, so I am not power cycling the system.  Obviously I don't want to do this too many times and risk damage to my expensive card.  I currently sort through the PXISYS.INI file for a list of expected installed devices, and use the VISA Find Resources to get a current list (also with logic to parse out non-DAQ devices like bridges, etc.).  That list apparently does not actually come from a live bus query, as when I remove a card it still reports it as present, and properties all return valid values as if it were still installed.  There seems to be some methods performed in MAX that do a module self test, but they don't appear to be exposed to LabVIEW?  What I think I need is some property query that is actually read from the module that could give me an error if the module is no longer present.
Thanks

needinfo

unread,
Jul 24, 2008, 1:10:15 PM7/24/08
to
Just to clarify, I am physically removing the card from the chassis, and as mentioned I risk damaging the card, so I don't want to do this any more than necessary.  The issue with the reset is that I want to do this health check while the system is running, and hence don't want to reset any output values or port settings.  Another person suggested that perhaps I set up a fake  I/O task with unused pins to test the system, which might prove to be a fair method, but that would have to be customized per design or per implementation.  It sounds like there is currently no good way to do what I hope to do, and DAQmx methods won't work with non-NI cards.
Perhaps an update to the VISA standard????
0 new messages