05-10-2011 06:35 AM
Hello all,
I am using NI PCI 8433 card. I would like to programatically determine which Port is associated with which COMx. or which port is associated with which serial resource. We can check this using MAX. I would like to do this using labwindows/CVI so that I can open the session for that resource using NI VISA. Any kind of help is appreciated.
Thanks in advance.
Sri Vidya
05-10-2011 09:24 AM
Well, If you were using LabVIEW you could use the NI system configuration API. Hmmmm When will this API have LabWindows/CVI support?
05-10-2011 09:27 AM
So dont we have any api to get the mapping for the NI PCI 8433 ports to the corresponding resources in labwindows/cvi?
05-10-2011 10:05 AM
It does not appear to have support in cvi.
04-11-2012 03:51 AM
Hi!
I have quite the same problem. I want to know to which board are belonging my COM port. I have a PXI 8433 board, i use labview, and using visa functions i can retrieve lots of informations about the differents board present in my chassis i.e. the resource Name (ASRL6::INSTR), the Interface description (ASRL6 (COM6 - PXI-8433/4)) .... . The probleme is i can't determine to which board are attached the COM port. When i look in MAX, we can see that :
How can i know that programmatically ??
Thanks for your future answer ...
04-11-2012 09:34 AM
I don't have hardware available to test this but this snipette should get you headed in the right direction in getting max information from LabVIEW
04-11-2012 10:45 AM
Hi jeff, thanks for your answer!
I checked your code, i've done quite the same using visa properties. I also tryed with the system API, but it doesn't work.
With your code i get the error (-2147220623: NI System Configuration: (Hex 0x80040371) The property does not exist for this resource) when i call the property node ConnBusType with a serial interface. I think this property can't be access with COM port.
And that's all the problem, a lot of properties are not avaiable for serial port, you can see that from MAX, when you open a visa test panel. For example the attributes VI_ATTR_MODEL_NAME, VI_ATTR_SLOT, VI_ATTR_PXI_SLOTPATH... doesn't appear in the list... The only interesting propertie is VI_ATTR_INTF_INST_NAME i read : ASRL10 (COM10 - PXI-8433/4), so i know my COM port com from a 8344 board... but if i have more than one 8433 board, i can't make the link ...
So i'm still searching, but i think it's just not possible and i wonder how MAX can do that ...
04-11-2012 12:18 PM
Sounds like a problem. perhaps the system hardware API could use some additional functionallity. Good thing there's an Idea Exchange
08-07-2016 02:20 AM