Alias VISA COM port

I have a test setup that I develop in LabVIEW which consists of many independent instruments. For simplicity, I have given all these instruments a VISA (e.g. programmer rather than COM3) alias so I wouldn't have to guess at which COM port, the instrument was attached to.

Now, in LabVIEW, one of my instruments is not a pilot but there a shared DLL library that I'm creating wrappers for. One of the entrances is the serial port in a digital format (for COM1, COM2, etc. 1 0). If I didn't have the alias I would just do something like this...

But... because I have these aliases I can't do so simple. Is it possible to get the number of serial port (COM) (I can the decrement) alias VISA?

Edit: seems that the code is not in the first passage

Name of the Alias is simple with the API system

Tags: NI Software

Similar Questions

  • VISA does not open COM port

    Hello, I made a simple VI which gets data from the PC com port.

    It works well on my desktop but today for the first time I ran it on my new laptop and it does not show the COM port. I see the COM port in Device Manager, but it does not appear in the drop-down list in my VI. Can someone please? I have attached my VI.

    Thank you

    You use a labview 2013? I had a similar problem and I had to install NI-VISA so that it displays. Not sure if you have installed that, but if not, then that should solve your problem.

  • VISA-driver not send string COM port first, if there are odd bytes

    VISA-driver sends no COM port string first, if there are odd bytes

    Hello!!!

    Thank you very much for the help.

    I'm sorry, but I can't play this situation, I ask. Maybe I use another cRio, or may be I am wrong. I don't know why, but all workers,

    I'm sorry and thank you once again.

  • USB-232/2 shows the COM ports but not found resources VISA!

    Hello

    I use an NI USB-232/2 interface to connect my OMEGA Engineering temperature controller to computer. The thermostat communicates with the computer via hypertermianl and the configuration of the OMEGA software, but can not be detected by OR MAX I've attached a screenshot of my MAX of NOR. I could see the two COM ports, but I can't see the VISA test Panel.

    My problem is similar to the post problem OR USB-232! I tried the solution for uninstall and reinstall NI VISA both NI Serial, but still does not.

    OR Labview 2009

    OR MAX 5.6.0

    NEITHER version 4.0 Serial

    Version NOR VISA 5.4.1

    Temperature controller: Omega Engineering CNi1644-c24

    Spoke engineering application NOR two days, no solution. Can anyone help? Thank you!!!


  • With the help of VISA can not find the com port

    I use visa read but cannot find any com port in Windows 7.

    How can I find the com port in Windows 7?

    Windows 7 is not released. A version of LabVIEW for windows 7 is not released. A version of NI-VISA for windows 7 is not released. Wait until MS releases windows 7. Then wait tile view deleted OR made available versions of LabVIEW and NI-VISA that work with windows 7.

  • Matter of finding the resources function VISA after COM port disconnected

    I have an application in which I use two COM ports for communication, both only is active.

    Between testing a com port gets connected and disconnected dynamically. I am able to connect and disconnect without problem.

    Now after my com port dynamic disconnected, its not visible in device as Manager, but if I search all the com port available using VISA find resource once it disconnects, then dynamic port COM is also visible in the list.

    Name of the USB interface is USB Serial Port and the com port is dynamic which will be disconnected. VI attached

    Any suggestion please


  • I have TO install Visa to use com ports

    Hello

    I want to use WinXP com ports. All of the examples that I find searching the Web using Visa.

    Is there a screw that can handle com without Visa being installed ports?

    All I do is read and write binary data to and from serial ports.

    Thank you very much

    Andy

    You can use .NET:

    http://msdn.Microsoft.com/en-us/library/system.IO.ports.SerialPort.aspx

  • COM port do not appear in my application

    Hello

    There is a reason why the com ports are not visible on a Xp Embedded Touch Panel?

    I have to connect via a serial port in my application, but the com ports do not appear in the control of Visa Resource Name...

    I've included any VISA in additional Installer related things...

    OK I solved it!

    I copied manually install runtime National Instruments visa drivers DVD and installed on the touch and now the com ports are found!

  • alias visa does not

    Hello!

    For some reason any my alias for my TTi PL303QMD-P no longer works.

    the power supply is connected to my PC via USB and is listed as a (COM34) COM port.

    If I remove the alias and select ASRL34::INSTR in the resource name field I can communicate and control the PSU.

    If I try with the alias "PL303", it times out and gives a 1073807360 error occurred to PLP boot with Options.vi

    Someone has experienced something similar and know how to solve this problem?

    He drives me crazy!

    Thanks for looking,

    Iain

    Hello!

    Thanks to all for your responses!

    I managed to locate the error.

    The Aliasing was at for the instrument, but the IVI driver pointed to the wrong port.

    I have corrected it here...

    IVI - names logical drivers - PL303 - go to

    From here, I then selected the device and pointed the descriptor resoutce to the right place!

    Thanks again

  • LabVIEW does not detect not COM port

    Hello

    I need to read the data of the PSoC using rs - 232 and post on labview. I created VISA and the control of resource name is created. But it does not detect the COM ports in the system. The only thing I get is refresh.

    I tried to pump data and verified by hyperterminal and it works well.

    Please help me in this regard.

    Thanks in advance.

    Noel

    Save even more-

    Cypress PSoCs interfaces via USB... (or I2C... but who would be ridiculus)

    Have you installed the driver Port Com Vitrual?  The Windows Device Manager sees the port?

  • Exe com port error

    Hello

    I am writing a program to take com ports for the main program.  Com ports are actually USB devices and I want them to be able to choose different ports if happen them to change because of the USB.  So I wrote the program to complete a ring of menu with the names of the available com ports.  Everything works well as a vi, but when I built it in the property node exe throws errors.  I run the exe file on the same computer as my vi for testing.

    #-1073807246

    Property node (arg 1) in comports.vi of choice.

    Is the property node: property: Interface: Interface of Information Description

    Use this as a VI he puts the names similar to what you would see in windows Device Manager.  The case of fake puts just the words "not used".  The entry is an array of references to Visa for COM1 - COM10.

    Any ideas on why it breaks in an EXE?

    It sounds like a session VISA is still open in LabVIEW and your exe cannot access. Try to run the exe with closed LabVIEW or see here.

  • break in series on the com port does not work

    Hello everyone:

    I have the following problem:

    I am writing a command via the ' 'entry visa' vi on my pc com port. in some cases the com port do not return anything. This means that my "visa read" vi would timeout. the problem is that, later, I need to send more orders but must break the line in order to be able to do. I inserted the "breach of visa" vi but didn't have the reaction I was expecting. the line does not break. I tried to increase the duration of the break, but that does not work either.

    Any ideas?

    By using LabVIEW 2013

    A break will not break the connection, it will just a 1 to the Tx line for a period longer than 11 baud (?) or specified length.

    A hardware check that the breakdown is send: connect a scope or a DMM TX and GND, a 500ms break must be clearly visible even on a "slow" DMM (k resistance 10 and two LED antiparrallel or RS232 minitester practice would do the same job )

  • How to find number of disabling modem com port if I know the name of the interface of the modem?

    Hello

    I know that if I see a modem device in Device Manager, I can do a right click on it, go to properties, then click the Modem tab for the port com for this modem device number. But how can I do deactivation in Labview? I hope that I can search by the name of modem which is known to me and then retrieve the com port number in labview code. I tried the Resource.vi find visa, but did not get something useful. Anyone has any experience on this?

    Thank you

    Spring


  • Choice of the COM ports without disturbing the user

    I am writing a LabVIEW application that uses at least 2 COM ports.  It will compile to run on different computers.  Now, I expect that to any one machine COM ports will remain fixed, but there is no way I can wait devices series that I use to make it appear in the same COM port on all the different machines (especially since some will have legacy RS232 ports, any other USB RS232 converters).

    It is a problem that I solved before when programming in 'C', by putting a text file on each PC, which, in the spirit of a name of INI file which COM port is used for each of the devices, I need.

    It occurs to me that I can do exactly the same thing in LabVIEW, open a text file and parse to see which COM ports are named, then use the number that results as the selector of a structure of MATTER, in which each case has a constant (VISA resource) COM1, COM2, and so on.

    It of crazy, or is there an easier way?

    To try it out, a problem occurs, and it is that I can not create constants for ports that do not exist on the computer I developed it on (I use 2009).  Well, I can go in the WIndows Device Manager and do a reallocation to finally get a full set of COM ports for my CASE structure, but I can trust to LabVIEW to not change because ports disappear?

    Thank you

    p.s. I think that this is my first post, came here often before but always found the answer without affectation.  My apologies if this point is already covered, but it seems a little too "woolly" to lend itself to the research without getting tens of thousands of results.

    You don't need a deal structure for each port.

    You can use the variant data to convert a string into a VISA reference name.

    Attached is an excerpt from one of my programs, I retrieve Comport settings from a configuration .ini file.

    There are a few things of special on this subject.

    1. I used a typedef had enum that designates each of my interest com ports.

    2. I have stored reference to the port com VISA in a global variable functional so I can use them elsewhere.  Typedef enum is important as part of the selection to get the correct reference to the FGV.

    3. I used a public OpenG function get strings to enum so that my string name that I use for the value of the key and enum are cross referenced.

  • How to get the description of COM port

    I have a USB to UART, do someone knowes how to get com port description, as seen in deveice managerment. ?

    You should be able to get this assessed with VISA:

    #include static ViSession sessH;
    static ViSession visaH;
    static ViChar descr[512];
    
    viOpenDefaultRM (&sessH);
    viOpen (sessH, "ASRL1::INSTR", VI_NULL, VI_NULL, &visaH);
    viGetAttribute (visaH, VI_ATTR_INTF_INST_NAME, descr);
    viClose (visaH);
    viClose (sessH);
    

Maybe you are looking for