List of serial ports present

I need a list of serial ports on a computer, so I can scan to find which is connected to an external device.

The application should be distributed on several computers with different configurations of hw & sw.

My problem is that I want only the ports of serial present listed - in other words, the same ports as those that occur in the Windows Device Manager.

When I use Visa find Resource.vi, I get a much longer list, which includes virtual ports also on the currently missing features, in my opinion.

Anyone know how to get this list?

I tried the code below and it works well on Windows XP (a long text string that I can look for), but I'm not too happy because I am afraid that it will not work on other versions of Windows:

Hi Jan.

I have attached a VI that uses the 'VISA find Resource' - function. This gives a list of all of the parallel ports on your computer.

Take a look at the VI and I would like to know if this is what you want?

Tags: NI Hardware

Similar Questions

  • Lack of Z - 400 serial port

    Hello

    I have a number of product Z-400 SG637UC #ABA

    Just updated to the latest version of the BIOS, was 1.17, I think.

    Manual maintenance and each user's guide I can find a reference to the serial port header (15-pin) construction which

    My motherboard has.

    However, I can't understand how to turn it on.  The security settings of the Bios do not list the serial port, and the Advanced Settings tab lists only the floppy drive and not the serial port.

    Are the parties other than the header not installed on the motherboard on this particular product number?

    Do not connect the pins of the rider 2 header and tell the BIOS the material is there?

    PIN 12 of the 15-pin header is labeled 'detect the com' on page 168 of the Z-400 maintenance manual.  I do not think it is a standard pins for communications series name.  Is it being stretched up or down to activate the port?

    I don't particularly want to spend money for the "2nd serial" material, when the first serial port is not working.

    Thanks for any help.

    PM

    AP_M,

    The Z400 has a 2 x 8 serial port header, you have found.  To access the serial port, one needs the HP, the PA716A Option kit serial port adapter.  This kit, described here, has a small PCB attached to a PCI card and cable to the PCB of the card mother Z400.  This PCB contains the RS232 serial port transceiver integrated circuit, so it is necessary to make the serial port work - a straight through cable from the motherboard to a will of connector serial port not working, to not try.

    Option kit that pa716a can be ordered as an option Z420.  The kit is not listed for the Z400, but the Z400 (and many other HP computers) use the same kit.

    To answer your technical questions:

    -IIRC, Windows requires masking devices that are not accessible.  That's why the serial port does not appear in the device without this option installed kit Manager.

    -12 axis, as you can imagine, is a "detect the com' which tells the system that the serial port kit is installed.  He is shot down (the Earth) when the cable attached to the motherboard.

    -If you want to experiment and see if the serial port becomes active, turn off the Z400, then put a jumper between the P52 12 serial port connector pin and ground.  Soil is on pins 8 and 7.  (The pins are numbered with strange pins on one side (row) and evens on the other kind of pin 2 pin 1 opposite.)  To determine which line is even or odd, pin 16 is the last pin and the missing key on the 'same' line).

    Then turn on the system.  After the Earth axis 12, the serial port should appear in the BIOS settings and certainly in the windows.

    * I think this is how it works, I have tried for a long time. **

    Does that answer your questions?

  • Get the description of a serial port with bundles of Visa

    Hi all

    How can I get the description of a serial port? for example. Communication port (COM14)

    I use currently Instrument VISA, but there is a large top of the head to the liberation, 65 MB on head.

    I wish to all the port available for the user to select the list.

    Thank you

    Shakeel

    You can find useful resources in the present code published by Martin some time ago. Original code only returns the port number, but running it step by step, you can find the point where the description of the device is found and use it.

  • dc7800p Convertible Minitowers: win 10 PCI Serial Port & PCI device drivers unknown misiing

    Have missing drivers - managed to solve PCI Simple Communication Device driver missing by downloading some drivers of HP support and running these '(Admin) command prompt' with them running in Win 7 Compatibility Mode.  What (s) that I have to run to remedy or if not where should I look to fix.

    Hello:

    You need this driver for the Serial Port PCI...

    This package contains the Intel Local Management Service (LMS) and the support of Serial - over - LAN (SOL) for Intel Active Management Technology (AMT) for the supported desktop models and operating systems. This software is part of the Intel Digital Office Initiative.

    FTP://ftp.HP.com/pub/SoftPaq/sp46001-46500/sp46134.exe

    Please post the hardware ID of the PCI device unknown that you are missing the driver.

    To find the hardware ID, go to the Device Manager and click on the unknown device needing driver.

    Then click on the Details tab in the upper part of the device window.

    Now you will see a drop-down list of property, and it will be set to the Description of the unit.

    On this list and select the 3rd point (Hardware ID).

    After the first string of characters you see in the window.

  • EliteBook 8570p PCI SERIAL PORT

    Hello everyone

    I nee urgent suite driver for mein 8570p - professional Win7 64 bit here::

    1 - Port serial PCI

    2 - HP hs2350 HSPA + MobileBroadband

    Thanks a lot for your help

    Best regards

    MOINGER

    Hello:

    This driver is supposed to work for the card WWAN 2350, even if it is not listed.

    http://h20566.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdDetails/?spf_p.tpst=swdMain & spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_124393_1%257CswEnvOID%253D%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument & javax.portlet.begCacheTok = com.vignette.cachetoken & javax.portlet.endCacheTok = com.vignette.cachetoken

    Try this driver for the serial port. It is part of the AMT system.

    http://h20566.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdDetails/?sp4ts.Oid=3688870 & spf_p.tpst = swdMain & spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_77385_1%257CswEnvOID%253D4059%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument & javax.portlet.begCacheTok = com.vignette.cachetoken & javax.portlet.endCacheTok = com.vignette.cachetoken

  • 8430 PXI cannot open serial ports

    Hi all

    I have problems using the NI PXI-8430/8 map serial ports.

    After installing the driver, the device works very well and the troubleshooter MAX serial shows all 8 ports as adopted and I can access ports.

    After a restart of the system, I can not access the ports of 8430. This utility lists all the ports 'Impossible' with the message "cannot open port.

    In the Device Manager configuration seems correct. Also, I find no error in the Windows registry (COMDB,...). Everythings seems good enough.

    I think that theres might be no other application that could take control of all ports, especially not after a reboot.

    I tried to reinstall the drivers, reorganize the com-numbers and I have already changed the material 8430. Nothing solved the problem...

    Does anyone have a solution or any ideas?

    My configuration:

    Rack of 1078 / controller: PXI-8135 / Serial Ports: PXI-8430/8

    Windows XP

    I have another system that works pretty well in the same configuration.

    Hello

    I found the solution. It was a conflict situations with the MT7 3 m touch screen driver.

    Special thanks to french colleagues, their position causes an appeal me the right way.

    Here is the link: http://forums.ni.com/t5/Discussions-au-sujet-des-autres/Ports-COM-des-cartes-NI-bloqu%C3%A9s-par-le-...

    You must disable the service "Search MT7 Service series" (configuration/Administration/Services Board). After I did that it worked well...

  • VISA (serial port) commands fail in VI, but working in the VISA test Panel

    Hi, I have an instrument that has a usb connection. When I connect it to a Windows 7 PC, it picks up the driver automatically and presents itself as a "USB Serial Port (COM7) (manufacturer's FTDI).»

    When I opened NI MAX, this feature appears as COM7 (ASRL7::INSTR) under "series and parallel. And when I click on open visa Test Panel and try it "* IDN?" command, it works OK.

    However, the VI (which sends just a command VISA "* IDN?") give me a timeout error (0XBFF0015) or a resource/device absent error (0XBFFF0011). A screenshot of VI is attached.

    No idea why?

    Thank you.

    PS: I went through the process to create the VISA-USB driver, who has another question, but I'm trying to understand why this happens. This device has also a GPIB port and when I use a USB-GPIB adapter, it works very well.

    N ° your first string to write sends a literal backslash and a literal n.  Your watch \n control, but it is in Normal display mode.  Change it to \codes mode and delete the extra backslash it.

    Your second string to write is set correctly for the mode \codes.

    Because the wrong string is written, the timeout error occurs and prevents the VI downstream on this same error running thread.

  • the NI 9871 serial ports appear also in MAX with built-in serial ports of the target - under devices and Interfaces IS NOT? NO NEITHER 9871 (Scan Interface)?

    Hi - Have cRIO

    Can someone help me get the NI 9871 (Scan Interface) work?  My two 9477 and two 9425 and 9403, function with the scanning Interface.  In MAX > software > NOR-Serial RT 3.82 > NOR-Serial 9870 and Scan Engine Suport 3.8.2 9871 BUT NOT == MAX > devices and Interfaces > series & parallel = number of Ports Com for 9871 listed?   Project, 4-port RS-485 NI 9871 is in slot1?  Any help appreciated thanks

    the serial ports on the NI 9871 also appear in MAX with serial ports integrated target under devices and Interfaces

     

    NEITHER 9871 (Scan Interface)

    I left the Slot 1 Slot 8 9871 Know works and MAX displays 4 COM ports.  Something is misconfigured in Slot1?

    Solved!

    Thank you

  • delay in the introduction of serial port to main loop

    I have a main program which consists of a period of time cards each loop iteration that is NI DAQ data acquisition.

    I want to have a serial port call that is executed only when a new value is entered.

    I can use a shift register and compare the present value the value spent, and then run the serial port when the value is changed.

    But when I do this, the program takes about 6-7 seconds until all the data is read on the ground after clicking the run button.

    I found that, even if the serial port does nothing, that the delay is still there.

    For example, I initialize the port series outside the while loop...

    I'm dragging the sons mistake and resouce for the serial port through the while loop, then make the visa close outside the while loop.

    NOR should not yet be it making any type of calculations on the serial port, whereas only the presence of wire delays the appearance of the program by a total of 6 seconds.

    As soon as the wire is removed, the program is in normal operation.

    What is going on?


  • Agreement between MAX and Windows serial port.

    I use a laptop running Windows XP and LabView 8.5.  I have a variety of USB to serial port devices that I use from time to time.  In the past (from what I remember), has accepted the name assigned by Windows, and MAX (COM1, COM2, etc.).  Recently however, MAX seems to think there are three serial ports on the computer, but the tags with a little black 'x' by saying that the device is in a State of 'unknown '.  Using the Windows Control Panel, I see that no serial port is listed in the system until I have Plug one of the converters in.  When the converter is connected Windows automatically recognizes and says it works normally.  It seems that MAX does not allow me to delete the serial ports that scored because they did not add statically.

    Is there a way to clear the MAX?  This has not caused any problem I was not able to get around yet, but it should be clarified.

    Thank you.


  • How can I check if a serial port is busy?

    When you use a controller of VISA resource to the list, and then select a serial port, is it possible to check if the selected port is busy (already active in another application) or not?

    To check whether or not the port already open you can also use the WinAPI CreateFile function.

    Also, you can read the following article: Serial Communications in Win32.

    From my point of view by using the VISA functions much easier. Just call VISA set series Port.vi, and if port buzy, then you should receive error code 0xBFFF0072 (the resource is valid, but the VISA cannot currently access). Not understand, why you can't use it.

    Andrey.

  • reading serial port control

    I am trying to establish a connection to an external device via the serial port. This is done in a while loop that sends a request to the association is trying to get a response if a response is not received a new rewuest is sent, etc. At the present time, this procedure does not work. I am considering two explanations for this. The first is that the loop does not wait long enough for a future response and continuous pumping motions, the other is simply that there is something wrong with the algorithm of reading, which don't take correctly into the serial port information.

    Have you even considered that the "application of the association" that you send is not correct. More often than not, the reason why you get nothing to read is because you not write properly. You have not posted anything related to this function and display of an image is not the best way to get help in this matter. For certain types of entries, it is important to determine whether your control/string constant is set to normal display, '-' display Codes or hexadecimal display.

  • Parity errors & read on Serial Port framing

    Hello, I am writing a program that reads the serial port IR thermometer. Intermittently I get parity so many framing errors and can't explain why or find a way to remedy. All the parameters of the series were double checked and controlled. I don't get any errors when you use HyperTerminal yet, when I do test bed in MAX, I see these mistakes from time to time. I tried the suggestions of the knowledge base for these as presenting a delay between the Visa set up and read the Visa or flushing buffer issue before reading, but none worked. Any idea or ideas would be appreciated.

    In addition, while searching through discussions on parity and framing errors, I saw a when a user recommends the following: "use wait event triggered by the stop character and when the error occurs, I just deleted the error, empty the buffer (wait the next stop character) and reread." If that sounds like a good solution, how would I go about its implementation?

    I've attached a screenshot of my reading series loop so you can see what I'm doing. I do about the error code control timeout is.

    Given that you have activated the stop character, you should not use the bytes to the serial port. You shouldn't have to delay or any function buffer flush.

    PS, You also have to change the way your loop exits.

  • PCI Serial Port driver for 6000 Pro - > Windows Pro 8.1

    Hello!

    Any chance to solve the missing driver?

    Thks

    Hello:

    I have a HP 8000 Elite (which is similar to the 6000 Pro) as my PC Backup.  I've just pulled up and I see that the hardware ID's for devices are aligned with those of the pilot I posted.

    So, you will need to manually install the driver I posted first you said did not work in Windows 7.

    Here is how to do this.

    Download and run the file (sp45367) again.  Conclusion of any windows error.

    Now, implying that you have installed W8.1 64-bit.

    Go to Device Manager and click on the device serial Port PCI needing drivers.

    Click the driver tab.

    Click on set to update driver.

    Select Browse my computer for driver and then software method at the bottom of this window, select Let me pick from a list of drivers for devices on my computer.

    Select disk, and then navigate to: C:\SWSetup\sp45367\SOLinf\mesrle, and then select the administration technology Active Intel (r) - device of GROUND in the list and the driver should install.

    The hardware ID for my 8000 Elite PCI Serial Port is PCI VEN_8086 & DEV_2E17, and who should be the same as yours.

    If you have installed 32-bit Pro W8.1 find the mesrl file instead.

  • xw6600 Workstation - Serial Port problems

    I want to add a standard RS232 9 pins (serial) port on my HP xw6600 workstation.

    Due to the current expansion I have only x 8 PCIe and PCIe x 16 available on the motherboard slots.

    I tried two dedicated PCIe Searial maps (PX-235 BrainBoxes and SatrTech BY - 1 S 552) and caused both the PC go into a continuous re-start cycle, i.e. the PC through the BIOS and rebooting itself before loading the operating system.  I tried to disable the interface Serial Port built into the BIOS, but it made no difference and cars (s) should be removed.

    I noticed that the motherboard has an onbard Serial Port adapter, but I don't know what hardware is required to present this port at the rear of the workstation (cable and plate back I guess), or even if it can be used for this purpose.

    If someone added a serial port to the device, I'd be interested to know how they did it.

    Thank you.

    That's what you're looking for. It is a connector standard seial that connects to the head set to edge out motherboard to an empty slot on the back of your pc. There are many on the market. You should be able to find a room for @ $6-8, 00 USD to any electronic parts store. If you activate the serial port in the BIOS, coupled with the installation of a configuration like this, you should have what you are looking for.

Maybe you are looking for