LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I identify a RS232 Card (e.g. PXI 8420/2)

Hi,
I am using RS232 cards like the PXI/PCI-8420/2 in some (not in all) of our systems. To identify which system it is I have to find out which card is available. I can see the card in the MAX but I didn't find a solution to find it from the software

- How can I identify from my software if such a card is available in the system ?
- Can I differ with the software if it is a PXI-8420/2 or a PXI-8430/8 ?

Thanks in advance

Oliver
0 Kudos
Message 1 of 10
(5,321 Views)
Hello,

i programmed two small examples for you.
You can extand them for your applications.

If you use only the traditional DAQ driver, you should use the vi: DAQ-traditonal.vi
If you use only the DAQmx driver, you should use the vi: DAQmx.vi

Regards
Markus Weigl
NI
0 Kudos
Message 2 of 10
(5,295 Views)
Hi,
thank you very much for the two examples. I will try them and I will give you a reply of the success.

best regards
Oliver
0 Kudos
Message 3 of 10
(5,277 Views)
Hi,
is it possible, that you send me some source code which I can insert in my CVI program ? Or that you tell me the trick how to identify the device ? Is there a function which I can call ?

Regards
Oliver Zind
0 Kudos
Message 4 of 10
(5,248 Views)
Hello,

what do you think about the solution from Jochen at http://forums.ni.com/ni/board/message?board.id=140&message.id=10978#M10978 with the "DEVCON Utility"?

You can try to find a function with the Windows SDK, too.
But i think it could be difficult.

regards
Markus Weigl
0 Kudos
Message 5 of 10
(5,228 Views)
Hi,
the DEVCON Utility might work but I need a solution "inside" my software. To be compatible with all our delivered systems I need a possibility to identify which cards are in the computer.

For example: If I use a DAQ card I can identify this card with the command "Get_DAQ_Device_Info". This command give back a Id with which I can identify the DAQ-board.

I need a similar possibility to identify which seriell board is used. Our system have three different possibilities:

1) No seriell card inside
2) PXI-8420 (eight seriell ports)
3) PXI-8430 (two seriell ports)

How can I automatically find out with my software which type it is ?


Oliver
0 Kudos
Message 6 of 10
(5,213 Views)
Hi,

Probably you can use the following functions

ViChar RT[256];
ViUInt32 COUNT = VI_NULL;
ViFindList HANDLE = VI_NULL;
ViSession defaultRM;

viOpenDefaultRM (&defaultRM);
viFindRsrc (defaultRM, "?*(PXI)?*{VI_ATTR_MANF_ID == 0x120}", &HANDLE, &COUNT, RT);

You can use the option string to filter out the necessary resources.

Regards,
Siddu
0 Kudos
Message 7 of 10
(5,196 Views)
i am looking for the drivers of PXI-8430/8431,would you send me them?
thank you
0 Kudos
Message 8 of 10
(4,992 Views)
0 Kudos
Message 9 of 10
(4,979 Views)

Thank you for your help

It gives me a great help! 

0 Kudos
Message 10 of 10
(4,938 Views)