AJJ
2008-08-15 19:40:20 UTC
What is the best way to determine the PXI resource string to pass to acquireBoard(..)? I have a PXI chassis with 6 identical NI6229 cards installed in it, and I need to make sure that I acquire the correct board. Obviously I know which slot I've installed the cards in, so it's my preference to key off of that. In reality it looks like my cards are all on bus 16, and my first card (installed in slot #2) is socket #15, so the correct PXI resource string is PXI16::15::INSTR. The next card (slot #3) is socket #14. So obviously I can empirically determine this, but I'm hoping to find a failsafe mechanism to do this programmatically -- some way to look up the socket number based on the slot in the chassis. I've seen in the C:\Windows\pxisys.ini file there seems to be a lookup -- in the section [Slot2] it indicates the bus and device numbers. Is the best way just to check this file? Or is there a better mechanism? And what if I had multiple PXI chasses connected to my computer? Thanks,
AJ
AJ