read com ports with command-line through labview?

I'm trying to find a way to get a specific com port through the command via the command exec system prompt in labview. Is it possible to get the list of com port connections just like one you see in Device Manager where he will give the list the name of the device connected to a certain com port? I want to be able to automatically find the port com for a specific device.

because it is a virtual com port that gets set up and I tried the vi to find resources VISA and it did not work. However, funny enough, just after I submitted this post, I found the solution to my problem. If you use exec system and type this command in the standard input:

WMIC path Win32_SerialPort

This will bring up a list of all com ports connected and very fast too. From there I can analyze the information I want and widdle down to the com of the desired usb device port.

Maybe this can help someone on the road.

Tags: NI Software

Similar Questions

  • Call a visual basic executable file with arguments command line using LABView

    Hi all

    I try to call a visual basic executable file with a command line using LABView 2014 argument. What I'm trying to accomplish executes an executable file that communicates with a device via a COM port. So, I would open the .exe with a command line argument to communicate via com 3 using the SYSTEM Exec VI. It seems that the command prompt window flashes and closes and then nothing happens. Not a lot of discussions about this on the forum. Any help would be greatly appreciated. Thank you.

    With some programs, instead of passing in the string:

    Somefile.exe

    Instead, you can use:

    cmd /c "C:\Full Path\to the EXE\Somefile.exe"

    Can you tell us what exactly you are trying to run?

  • Icon has a circle with a line through it, so I can't move the icon to dock... why? Fix > |?

    Icon of Firefox which is shown to go in my applications folder
    a circle with a line through it, which does not allow me to drag the icon
    in my dock for us opening and closing of browser... why? And how
    can I get rid of this circle?

    I deleted an earlier version of FFox so I hae no icon to open with.
    I get message that says Ffox can not open - please help.

    thx. weidner
    

    http://www.Mozilla.com/en-us/Firefox/4.0/system-requirements/

    Mozilla Firefox 4.0 does not support Mac PPC or versions prior to 10.5.

    For older Macs that are not considered supported in Firefox 4.0, try TenFourFox for PowerPC in performance Mac 10.4.11 and 10.5.8.

    http://www.floodgap.com/software/tenfourfox/

  • I refine my selection brush tip is a circle with a line through it

    I don't know what is happening, but every time Adobe updated the program happens something evil. I use edge tool I refine my selection for years and now with the last update from last night, it does not work.

    • I make my selection then click on refine edge
    • This opens the dialog box
    • I select the overlay as my display mode
    • Then select the RADIUS tool refine

    Instead of the normal work with any brush I get is a circle with a line through it, so I can't say anything.

    Have they added a new switch that automatically prevents the user to use this tool now? Worked fine a few days before the last update.

    Thanks in advance for any help.

    The biggest problem with these questions is they always happen when you change a photoshoot and cost ridiculous amounts of time and frustration and to prevent on time delivery.

    I guess that Yes JJMack, but to reinstall everything is a pain in the occipital region. I'm on CC and as updates come just click to install. Refining the edges of the selection is such a basis now that I'm surprised that that happened.

    Finally, I called Adobe and solved it. The tech told me that with a few updates the "user settings" file is corrupt.

    He would do a total reset but of course I'm worried of losing work spaces I had worked to build so it copied those on the desktop, then named the settings file... "old"and challenged market PS

    Who have to rebuild the settings file, and we tried again and still had the problem, so he tried a second time and on that one edge tool refine magically started working again.

    My workspaces were rmoved to the right folder and these work now too.

    Now, I can get this finished filming.

    Kind regards

  • Red circle with a line through

    I look a my email, hit something on my keyboard and I had a red circle with a line through it on my email that I look one including all the others with the same subject / receiver. Now, emails are no longer there and I have not received all messages from this person either, at least not through Thunderbird. I don't know what I did. Any help is greatly appreciated.

    Thank you

    Mark

    See Menu (Alt + V) > discussions > ignored threads

    See https://support.mozilla.org/en-US/kb/ignore-threads

  • I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help?

    I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help

    Try to drag the image to id web site (favicon) on the left side of the address bar, instead of the URL.

  • 8703e blackBerry smartphones shows a circle with a line through it and box behind. Lights on. NEED HELP!

    My wife just got this BB and worked great, when all of a sudden there isa circle with a line through it and a box in the center of it with a cirle, square, and a triangle inside the box.  We tried to remove the battery, nothing works.  Spoke with someone at one of the section local stores and he said I need to download the Desktop Manager.  I did, but it does not connect to the phone.  Any suggestion?

    Click on the link

  • I have a red circle with a line through it on my need for speed Shift II in my Start menu, the game does not open

    Problem: I have a red circle with a line through it m need for Speed Shift II in my Start menu.   I have never had a red circle with a line pop up on any program in my Start menu, I wanted to know why it happened and how to fix it. The game accepts updates in the form of 'Add packs' of special vehicles in the original site via the EA download manager sports. So I guess that the game is installed correctly, but the game will not open and run at all, not from the start menu, or by clicking the desktop icon. Any help learn more about the red circle with a line about my program and what to do in case it happens again.

    Recently, I installed my Windows 7 Ultimate OS on a SSD which had been replaced because of a total failure of the car. I've updated the operating system with all

    latest updated windows and the updates of my video card, motherboard, HHD and SSD updated; Thus, all the hardware and software are up to date.

    I was going to restore the disk using last good upward from the orginal SSD before he died a month or two ago. So I think this will probably fix my need for speed II problem, but since it's the first time I've ever seen this problem with a program I would like to know how to cope.

    Any help would be greatly appreciated,

    Take care. Skyraider33

    I've never seen what you describe in the Start Menu, either

    You have a new installation of Windows on your new SSD, Yes? If the game is on another HARD disk,
    is that what you did re - install the game after installing the new Windows?
    Otherwise try to reinstall the game and origin. He would register
    entries, both in the previous installation of Windows.

    If this does not help forums EA would probably be a better place to find out if the
    mods are the source of the problem.

  • When I try to edit a room photo in photoshop elements 12, I'm not able to use the slider or one of the drop down menus. All I have is a black circle with a line through it.

    When I try to edit a room photo in photoshop elements 12, I'm not able to use the slider or one of the drop down menus. All I have is a black circle with a line through it.

    Most likely, the images are 16-bit/channel.

    Go to Image > Mode and click on 8-bit/channel and see if that solves the problem.

  • How do I run the exe of labview with command line

    I would like to launch an exe of labview with a command line.

    I would like to get advice how to launch the exe of Labview with give values to the control settings?

    You can view the example where x, there are controls

    There is a more detailed guide here, I reference below:

    1. first of all, you can enable it in settings:

    1. open the properties for a version of the application specification

    2. navigate to the Advanced category

    3. check the pass all arguments on-demand command line

    To pass the arguments to command line to request and access in your code follow the same steps as for LabVIEW 7.x.

  • Is there a problem with Adobe Reader DC using the command line to open a file?

    Hello

    I am a developer and we use Adobe Reader to view our PDF help files in our application.  For years, we used WinExec() to open Adobe Reader, by specifying the file to open on the command line and it has been working perfectly.  In other words, upward until our users began to load Adobe Acrobat Reader DC.  Despite this work very well when you type a command using CMD.exe, it simply does not help WinExec() from another application programmatically.  Also, I modified the code to try using CreateProcess() or ShellExecute() and these functions do not work either.

    It may have to do with the fact that there is a switch or a parameter now within the DC, but I don't know what it is, or why it happens.  If anyone can shed some light on this it would be much appreciated because it severely hampers our latest version of the software.

    Kind regards

    Leigh.

    A common cause is not to put quotes on the command line, so instead of

    "c:\program files...\acrord32.exe" "c:\documents and settings\...my file.pdf.

    You write

    "c:\program files...\acrord32.exe" c:\documents and settings\...my file.PDF

    This has always been bad, but older versions it would accept anyway. (It was a recent change but not in DC).

    I would recommend using ShellExecute instead of the command line, however. That simulates a double-click and executes everything the user has created for PDFs (perhaps Reader, Acrobat maybe, maybe something else).

  • By specifying the container to connect with command line utilities (sqlplus/expdp etc.)

    Hello

    To inaugurate this forum I was play multitenant/pluggable has 12 c and I have a general question about connections to the database of the container - it is clear from what I've tried so far (and what I've read) there is no way to connect to a database from the container without using a sqlnet connection. For example:

    Export ORACLE_HOME, ORACLE_SID etc.

    sqlplus username/password - it can only connect to the database of the container? (once you are in you can alter the session to switch to the plugable database but cannot do so directly to the connection)

    to connect to a database that is connected is always through sqlnet

    sqlpus username/password@pluggable

    There is no option to say something like:

    export ORACLE_SID = container

    Export ORACLE_CONTAINER = pluggable

    and then do sqlplus username/password?

    additional command line switch or as

    export ORACLE_SID = container

    sqlplus-container = name of user and password pluggable

    This understanding is correct or have I missed something in the documentation?

    Kind regards

    Harry

    http://dbaharrison.blogspot.com


    Hello Richard,.

    In Oracle Multitenant, the only way to connect to a PDB file is by specifying a service.

    However, there's a shortcut you can use - TWO_TASK, you will find described elsewhere.

    This allows you to specify the default service to serve--think of it as being silently added to your specification by name of user and password. I hope this helps.

    Best regards, Patrick

  • Develop an application from command line using LabVIEW

    Hello

    Is it possible to generate an executable command line (CLI) uses LabVIEW? This CLI exe is called with some arguments in command line by another application (written in Visual Basic). The LabVIEW run-time engine can be installed separately on the host PC.

    Thanks for your help

    Siddharth

    The only way I found is to create command-line 'wrapper', where the DLL based on LabVIEW is called. So you can not only pass parameters to the command line application, but also the return values of CLI app.

    Check this thread: tool command line that returns a value

    Andrey.

  • Debugging starts with command line arguments?

    How to start the debugger to a program installation command line arguments? I've never had the need to do this before and I am puzzled as to how to do it now. I added a couple of command line arguments to control some run time options and I don't know how to start the debugger with the options passed to the program. I used cela in the past to start two different execution through a pair of icons of Windows shortcut with properties: goal: target option1a option1b chemin_acces_de: path_toexe option2a option2b but they have so far been so trivial that I never really had to try them under the debugger. How to start the debugger and the RCGA and * argv [] variable configuration when main() is called? It is a modification of a very old project, so I use CVI 5.5 here, if it's important. -wally.

    Hey Wally.

    In CVI 5.5, you can go to the menu Options in the project window and choose ... command line to specify command line options to use when debugging.  In more recent versions of the CVI, this option is located under the menu run .

    NickB

    National Instruments

  • How to call a function plugin with command line parameters

    I wrote a plugin that processes an open document. The treatment can be started by selecting a menu item in Acrobat. To start the processing of the command line, I also wrote a small Visual Basic executable file that currently a bit activates the menu command. However, I now have to pass some parameters to the plugin. I managed to call a function plugin with settings by loading the .api as a library file in the VB executable. But it seems that the entire Acrobat SDK functionality is not initialized in this way. So I can't work with the PDF file. How can I call my function plugin with settings in Acrobat? Thomas

    You must establish a form of IAC (communication monitor) of your VB application with your plugin.

    Whether COM, DDE, IPC, named pipes, shared memory files share, etc. is to you...

Maybe you are looking for

  • Where can I find a compatible RAM upgrade for a Satellite 1130-Z25?

    My Satellite 1130-Z25 runs very slowly and I'm looking to boost performance. I want to upgrade the RAM - this model will support supposed to be an upgrade to 1024 MB of RAM. Where can I find a compatible product? (the function "show compatibility" do

  • Satellite A300D - FN keys and fan not detected

    Hello Crashed my HDD (winlogon, MBR, boot,... deleted. Just a disaster), so I have to format the drive and make new instalation of Windows. And it happened Toshiba utility installation. And I can not find the drivers for the FN key. I googled to be c

  • Envy 15-ae107ur: max HP Envy 15-ae107ur ram capacity

    Hello. Could you help me? I can't find information on the maximum RAM capacity supported for HP Envy 15-107ur laptop. There is only information on installed 8 GB RAM DDR3L. It is supported to install 2 slots with 8 GB of RAM DDR3L? or only 1-8 GB of

  • PAVILION dts | sound +: locked out of my laptop!

    My friends daughter just had a baby and somehow, she forgot her cause of password as long she used this laptop perticular. But because his brother had been messing around with it the last time he had her locked ot of the bios I think? I'm not very go

  • Windows restarts after updates while runing mode full screen

    Dear, I have a problem with the windows updates.Whenever windows installs a new update, if I'm running a full-screen application or a full-screen application, restart windows all of a sudden without giving me any notice.So by doing something, I find