automatically detect serial ports

I can't do my VI detect the connection to a serial port automatically, I don't want the user to select the COM port? *

If you try to find USB ports com, maby one of them will help.

Tags: NI Software

Similar Questions

  • Automatic detection of settings serial port using LabWindows

    Hi all

    I have a program that interacts with the device via RS232. For now, I've just implemented the port number in my code and it must be changed every time we turn on the computer. Is - it feasible that I could detect the port number first and then communicate with this device.

    Thank you very much!!

    Faithful


  • VISA serial port automatically configures scan of the available serial ports?

    I am using a VISA set a serial port to open a connection to the serial port, to enter data, make some manipulation of array and display it.

    My VI works perfectly until what I have build in exe and transfer it on a laptop with a USB converter to port series (as the laptop does not have a serial port).

    Windows allocated the converter to COM9, but I do not see it in LabVIEW.

    Do I need to use something like 'Find VISA resource'? If it does find something how can I change the name of resource VISA?

    I have attached a screenshot to give you an idea of what I'm doing.

    There is absolutely no reason to use all of this code. The original order of resource VISA name should work just fine. Have you installed the runtime VISA on the laptop? If so, did you also install MAX, so you can check the VISA resources on the latptop?

    In addition, since an exe file will run automatically when opening, have you provided a mechanism for a com port selection until the program begins the acquisition of VISA?

  • Questions about serial port read and write at the same time

    Hi I create a user interface for the communication serial port, where there are essentially 2 front panels, where the user enters commands one and the other where the prints of UART is delivered. I thought initially using a state machine but the reading and writing may be independent sometimes and so I can't rely on States. I searched a bit on the forum and he left me even more confused. Help, please.

    (1) in a thread that sessions visa duplicated has been used for writing and reading at the same time, is it recommendable? How will this affect performance?

    (2) essentially when the vi is reading data are it must constantly view as well, however, someone said that it takes too much memory to use shift registers, so how do I go about this? If using a State in queue after the loop of reading it affects the playback loop and be sequential?

    In addition anyway is to move the cursor to the latest data from the indicator

    (3) for the control of the user input, assumes that the user has entered an order in the control and press ENTER, then writing visa is launched, but if it comes in another string and press enter then write must be called again... is - it possible? will detect the previous commands in the control of compensation?

    (4) according to my understand the expectation for the event do not monopolize resources and writing can go in parallel, am I right?

    Thank you. I have attached a very basic vi which took me to the point, but I want to make it more robust. Please help especially in the part of the user interface.

    su_a,

    (1) you can have only one session to a port. Several UART can handle full duplex so performance is not affected.  At flow rates of high data and large amounts of data, buffering and latencies of BONE can become a problem.

    (2) who told you that shift registers using too much memory? Shift registers are usually the best way to transfer data from one iteration to another. String concatenation inside a loop (registry to offset or not) causes the chain to develop and may require re-allocation of memory.  Your VI never clears the string so its cold length become very large.

    Generally, you do not have an active cursor on an indicator.  If you want to always display the most recently received characters and turn on the vertical scroll bar use a property node to keep scrolls to the bottom.  This can be annoying for users if they attempt to manually move the scroll bar and find that the program continues to move it back automatically.

    (3) if the user has changed the value in the chain of command, when he hits enter the modified value event fires.  Simply strike brace does not change the value and does not trigger the event.  Not control need to be erased, but the value that he has to change.  If you want to send the same command again, have a button send a command may be a better choice.

    (4) write is a case of the event.  It is not in parallel with anything.  The structure of the event do not monopolize resources.  The other loop will run while it waits.

    The event loop will not stop when you press the STOP button. Probably it wll take two command: change events of value after JUDGMENT before any loop stops.  Replace the Timeout event (which never expires) with a STOP: value change event and a real wire of this judgment to the Terminal endpoint.  Remove the local variable.  Make mechanical locking when released.

    Lynn

  • whille prob get bytes to the serial port for serial communication

    Hi all

    I have one using the series write vi to send the command to the instrument. the answer I get is read NICU playback vi. I use between read and write the serial port bytes accumulate bytes. BU what I observed is quite strange. When I run the vi with the debugger, I could c the bytes to port series is 201 and what I get in buffer is only 133.

    any1 can guess at what the problem would be b?...

    You don't show the function of VISA set up a Serial Port, but I guess you have the active stop character. Playback will end automatically when the character is detected and you should never allow when you try to read hex.

  • When a character appeared reading serial port

    How to wait for some specific characters occurred in the serial port (e.g. port COM1 RS232 on PC) and then they recover at the port?

    I want to communicate back with a motor controller that uses ASCII strings such as commands and responses. It formulates a response to any command sent, and the response contains exactly a termination character (that I can specify during installation) at the end of the response string. Sometimes also, it sends a message when there is no order issued, for example a disc error message. There is no simple way and reliable when the controller is going to speak, when he won't, and the message will be exactly how many time, but we do know that each message will have this stop only at the end character. I would like to interpret the entire message in my code, that is to say, I would like to retrieve the string of all the characters from the previous endpoint character up to and including the most recent stop character. I think it means that I would have a VI that returns the message string and does not stream until the stop character appeared and was added to the response string. Or, Alternatively, a loop that adds entire messages to a queue of strings.

    All the screw example I found seems to rely on a certain number of milliseconds to wait or to know how many bytes to read, in order to use VISA Read.

    So far, I use a loop which seeks bytes in the buffer, retrieves everything to add to a string of shift register and test if there is a character of the string endpoint, all extract up to and including the stop character, if so. This feels very awkward and expensive for what should be a common task. Is this general law approach, or did I miss something in a simpler way?

    I read on the communication by Message and characters of endpoint, approach that sounds functionally similar to this, but it seems around standards of SCPI and my motor controller does not support this. In any case example Finder does not get a single hit on 'Message '.

    Thank you!!

    It really looks like you are doing things a lot more difficult it must be. Look at the VISA configure Serial Port. It has a character of endpoints allow and end characters entries. If you wire a real (or leave that he unwired) entry activate, read VISA will end automatically when you specify the stop character is detected. As long as the number of bytes to read is larger that the largest string that you expect to read, there is nothing else you need to do. That's how examples of shipment are put in place and discussions about the characters of the termination. Should there be nothing related to sustainable intensification of CROPS. If you do not get a message in your specified time-out, you get a time-out error.

  • p5u69ut: Serial Port PCI drivers

    Where can I find the drivers for the PCI Serial Port on this machine?  I loaded all the HP drivers for this macine after an upgrade to windows 7 Enterprise and this driver is not available.  Thank you

    Hello:

    You need this driver... install it manually if automatic installation method does not work.

    This package provides the driver Intel Management Engine components to support desktop models that are running a supported operating system.

    FTP://ftp.HP.com/pub/SoftPaq/sp75001-75500/sp75384.exe

  • Satellite 2250XCDS does not recognize compressed serial port

    I have a 12 x 12 connected to the serial port (COM1) Tablet and it does not detect or recognize this tablet.

    The Tablet is plugged. The Tablet light is on. The light changes from red to green when I run the stylus above isn't the tablet that is at issue here.

    Please notify.

    Hello

    I assume you are using a graphics tablet (Pad). Is there a driver that must be installed before you can use it properly?

  • HP ZBook 15 G2: I can't find driver for Serial Port PCI

    After re-installation, my HP ZBook 15 G2 is missing the driver for "PCI Serial Port (COM5)".

    This unit has the following ID: VEN_8086 DEV_8C3D

    I installed all the drivers for chipset for the HP ZBook 15 G2.

    Where can I find the driver for this device?

    Hello:

    You need this driver.  If the driver will automatically install the driver for serial port, and then manually install the device by navigating to the folder of the driver that was created when you ran the file.

    This file will be located in C:\SWSetup\sp68428.  Make sure that the include subfolders is selected and the driver should install.  Then restart.

    http://h20564.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=6978815&swItemId=ob_137806_1&swEnvOid=4059

    The hardware ID you posted is supported by this driver if you look in the mesrl configuration file.

    [Intel.NTamd64]
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_1E3D & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_1CBD & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_1C3D & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_1DBD & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_1D3D & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_8C3D & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_9C3D & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_9CBD & CC_0700"
    % SRL_DeviceDesc % = ComPort, "PCI VEN_8086 & DEV_8D3D & CC_0700"

  • 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.

  • Time GPS, Position, Velocity.vi - error-1073807360 reading was held at node (arg 1) .vi property VISA set up a Serial Port (Instr)

    We receive information such as the Latitude and Longitude of a receiver Garmin GPS18xLVC via a serial port on our PC using LabView 7.1.  Successfully, I connected the GPS on the serial port and tested with HyperTerminal.  I tried reading GPS time, Position, Velocity.vi several times and still receive the following error message: error 1073807360 has occurred to the property node (arg 1) visa configure a Serial Port (Instr) .vi.  I think it has something to with the configuration of the VISA series under vi.  Any suggestions would be greatly appreciated.

    Thank you

    I understood the question, that I had with the time reading the GPS, the Position, the Velocity.vi.  The vi. "do not open" port com automatically and so I had to modify the NMEA GPS Subvi reading to first open the port (VISA open command) and then continue with other operations.  Once I did this it started to work very well.  I don't understand why this feature has been left out because it won't work without it.  I tested the code with a receiver Garmin 18xlvc and it seems to work fine.

  • To configure a serial port using Max

    Hello

    I inherited the code that configures the serial port using the old serial code that does not allow the user to specify the term tank and turn on the tank of the term. Any ideas on how this is done with the old serial code? I also tried to use MAX to set the term tank and allow it, I am able to communicate with my device series with Max and I saved the changes when I was. So when I run Labview code, my serial code fails because the term tank is wrong and it is also not enabled.

    Everything that happens with the definition the term tank and allows ideas?

    What you do to the MAX to the extent where the configuration of the serial port have no impact on the LabVIEW program. (EDIT: which means that you can change the configuration in the LabVIEW code.)

    If you load the old code in a version of LabVIEW using VISAS for all the stuff of series then the screw would have been automatically replaced by shell screw that NEITHER created for the old code. Inside, they use just VISA. More than probably the old code use via digital port numbers. For example, in the library of \vi.lib\Instr\serial.llb of , you will see these shell screw Serial Port' writing' for example, calls the 'Open Serial Driver' VI which simply returns a VISA session. It then uses the Write VISA. So you can define characters of termination by obtaining the VISA of "Serial Driver Open" resource.

    Of course, the best solution is to rewrite the code using VISA directly. It will be much cleaner.

  • Serial port doesn't work is not on the installed machine

    Hi people.

    I developed a labview program that reads from the serial port. It works fine on my development machine, but when I install it on a different machine, it will not work. I tried several facilities. Both the automatically selected installallers and checking the DURATION of NI-VISA 15.0. I also see shared components VISA 5.6.0 (64-bit) in installed programs. Do I need to add additional drivers or anything like that.

    I would assume that selected installers automatically chooses everything. I am blind as to what is the problem.

    Select this option.


  • Serial port in a conflict of use

    I'm using LabView 11 Pro

    I'm controlling an instrument that is not always connected. No problem. However, there is another program that is used by using the same port comm on the same instrument. Is there a way to weather detection that the comm port is used without question the instrument?

    Trying to open the communication to the serial port using NI VISA should not affect existing communication from another application. You will get an error saying something like "device already in use.

    So overall:

    Just try to open the connection to the port series and look for the error. If it happens, the resource is already locked (in use). If this is not the case, your application can use it.

    hope this helps,

    Norbert

  • 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.


Maybe you are looking for

  • How can I load a URL without going through a search engine?

    I used to be able to enter a URL and go to the web site. Now, I have to go through a search engine. This changed on the last update. How to return to the opportunity to enter the URL and go directly to the web site?

  • Clock rates double d500

    Why is a 725Mz and the other 150Mz?

  • string table

    The input string is abc = 4, def = 5. I would like to string array of production with abc and def elements. delete the number including the equal sign... For this I used string table spread sheet and the format used % [^ = d *]. Any suggestions?

  • Are the US 3 G Xoom network locked?

    Hi all I live in Australia and I am wanting to buy a Motorola Xoom. I have a Samsung Galaxy Tab for the moment but would really like the larger screen. The Xoom is not for sale yet in Australia. I'm looking to buy a Xoom slightly used on ebay, if I c

  • Struggling to download!

    I had problems to download anything from the internet, everything stops shortly after the start. I got kaspersky antivirus but it is now out of print and I am not able to download a free antivirus software. Anyine can help this problem is driving me