From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Overview
Get information on COM port by Slot and port in Chassis So you can know which physical output/input you use even if cards was swaped.
Description
VI pull Card information (Resource Name and Slot) using nisyscfg VI's and then it load niserial.dbs in ni-rt\system where you can find Visa Alias and Port by resource name.
Good solution for customer maintenance on-site of PXI system by switching malfunction cards without configuring COM port alias manually in NI-MAX.
The manual process is OK for experienced Technician but the on-site operator would have a problem to set new card COM alias, especially in viable systems.
Was tested only on system with PharLab OS
Steps to Implement or Execute Code
Requirements
Software
NI LabVIEW 2015
NI Real-Time
Hardware
Real-Time Target (Was tested only on PXI Real-Time Controller)
Realveant Links
Enumeration and Naming of NI-Serial Ports and Other PCI Devices
http://digital.ni.com/public.nsf/allkb/6511208D0D82A8C586256D18005F1545
Problem dwscription
Or Hirshfeld
Application Enginner
SK-Electronika
Israel
SK Electonika Website - http://www.sk-advanced.com/category/electronics-1
Linnked-In Profile: https://www.linkedin.com/in/orhirshfeld
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hello,
I have a PXI system with 2 Serial cards. Each of the serial cards has 4 ports. The VISA resource name gets changed everytime i change the hardware slots. Is it possible to configure the port name programatically?
I use windows 7 64 bit OS.
Would appreciate any help.
Thanks,
Sreekanth
I pulled data from 2 different files and than updated one of them
i needed to know on which slot a card is connected and which COM ports are assinged to him
than i can rename the com ports according to what i need
it built for NI-RT PXI with Pharlab OS but as far as i know Pharlab is a stripped down Win OS so maybe it's similar
I know that in device manager you can manually change the com number so maybe there is way to change it progmatically by modifying Registry or linking to some windows function
i would also try to set the com name using NI-MAX