Auto search RS232 port for device

I know I posted this elsewhere, but it was under the wrong board, so I'm posting it again. Hope you understand...
Well my question was concerning how to autoconnect/autosearch a RS232 com port..
Hi
I have attached a device to my RS232 (com) port, to which I send some string commands to control it.
When the user attach the device to his own computer, I want to make it easy for him to connect to it, SO therefore I want to know if it is possible to do a autosearch on the com-ports on the computer (if there is more than 1) to find the connected device?
I can send a string to my device and get a "ready"-response, if this would help.
Best regards
Simon
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010

"VISA find resource" just finds all available COM ports on the computer, not the specific one my device is connected to, but I found a workaround by searching for all com ports and then sending a command to my device in a for loop to check if it is present at the specified port.
Thanks anyway.
Best regards
Simon
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010

Similar Messages

  • I need a laptop with a RS232 port for PLC communications

    I need a laptop with a RS232 port for PLC communications. Now all laptop on the
    market have no RS232 port. Some laptop has a PC express card slot. I find a
    PCMCIA to RS232 RS-232 Notebook Serial I/O adapt Card on eBay but I don’t know
    if it can work with PC express card slot. Please give me some advice.
    Thank you,
    Alfred

    Hey I have same problem. No PCMCIA No PCIe No USB converter are usefull
    I recommend you to use IBM Thinkpad Laptop with DockStation (adv Mini Dock 2504-10U)
    This Dock Sattion have real RS232 port

  • Need to search USB ports for upgrades to custom LV program

    Has anyone done this before:
    I need to provide upgrades/maintenance to a piece of custom LV code that will be in the field. The program needs to check if any external disk devices (memory stick, cd, hard drive, etc) are connected to any USB port and if so copy the upgrades to their appropriate directory. Any suggestions or better ways of doing this would greatly be appreciated.

    The List Directory function will probably be the easiest way to check the current directory info of your system. Attached below is an example VI that prompts the user when it finds a new drive.
    Good luck with development.
    Regards,
    Matt F
    Keep up to date on the latest PXI news at twitter.com/pxi
    Attachments:
    check_drives.vi ‏28 KB

  • Equium M40X-189: How to connect RGB port to RS232 port?

    Hi,
    as you know the Equium M40X-189 P-M 730/XP has an RGP monitor port and does not have RS232 port.
    Im working with Auto-titration device which require RS232 port for connection!
    Any idea of how i can connect my notebook to this device!
    pls help
    thanks
    Omrankl

    Hi
    As far as I know the RS-232 port is a serial port and I dont think that its possible to connect the RGB port to the RS232 port.
    But I have found the useful website:
    http://www.ontrak.net/usb.htm
    There you will find a description how to connect the USB port to a RS-232 port.
    You need a ADU interface.
    Check the link.

  • How to find COM port for a specific USB device

    I want to automatically find the COM port for a specific USB device. I use the VISA find resource function but I can't get the manufacturer's ID. VISA says the device doesn't have this information. The find resource function does narrow my search (and often finds the port depending on what other usb devices are connected). In the case where it finds multiple possible ports, can I safely send a message to each port to determine if it is the correct device? I know it will work for my purposes but I don't know if I am asking for trouble by sending messages to unidentified devices. Any thoughts on how I can identify my device port will be appreciated. Thank you - Dave F

    You can do it using WMI.  I have C# code I am supposed to convert into LabVIEW foing something similar to what you want to do.  In my case, I am testing a USB device and need to know which port on the hub is which COM port (the device creates a virtual COM port for communication).  Using WMI, you can find the hardware path to the device and know that COM10 is USB hub Port 1 for example.  Unfortunately, I cannot share the C# code.
    You can download the WMI Code Creator tool from Microsoft, which should help you tremendously find the proper method of getting your info.
    You basically want to look at all the W32_USB devices for the specific device you are looking for.  Once you have that, you can look for the COM Port associated with it.  I don't know when I will get to coding this up in LabVIEW, but will report back when I do, assuming you haven't found the solution by then.

  • Can time capsule be connected wirelessly and still use ethernet ports for other devices?

    can time capsule be connected wirelessly and still use ethernet ports for other devices? we have it connected wirelessly but devices connected to the ethernet ports are not working.

    Not as an additional router.. the TC will be plugged into the main router via ethernet (or ethernet equivalent)..
    Then the TC is setup in bridge mode. It will simply act as a Switch and HDD.
    The wireless can be setup in a number of ways.
    From your convenience point of view use it in roaming network mode..
    you simply give the TC the same Wireless Name as the existing routers SSID.
    Same security setting and password. WPA2 Personal = WPA2 AES which is the best.
    But they both use different wireless channels.. normally if you leave the TC on auto it will work fine, but I prefer to control the network.. so set the main router to say 1 and the TC to 11.
    You can also use a completely different wireless name etc.. that is up to you. It is still a single flat network and the only thing that is important is only having one router.

  • HT201401 My bluetooth is no longer working in the car - it keeps 'searching' for devices

    My bluetooth is no longer working in the car - it keeps 'searching' for devices.  Anyone ever had this issue?
    Thanks

    Can you connect from your phone to another BT device, not the car?  If you haven't ,I'd try a reset of the phone by holding the home and power button down.  Next step would be to talk to your dealership and see if they have any ideas. Sometimes software can either get updated on iOS or on the vehicle and it can cause problems.  Every dealership seems to have a go-to person that handles issues like this.  Getting to know him or her well and getting their direct phone number will pay big dividends.  A device restore might be necessary, but if it were me I'd talk to the dealership first. 

  • One Thunderbolt port for two HDMI devices?

    Hello
    I was wondering, is there some sort of adapter that I can put in the thunderbolt port for my mac mini and connect two hdmi devices (monitors)?
                                  HDMI 1
    Mac Mini - 1 TB <
                                  HDMI 2

    Use the HDMI port for one monitor and a mini displayport to HDMI adopter on the other. That adopter plugs into the Thunderbolt port.
    You want to set them up as extended displays.
    he following also applies to Yosemite
    http://support.apple.com/kb/HT5891
    OS X: Using multiple displays in Mavericks

  • Splitting the Time Capsule USB port for 2 devices ??

    So if i have and external HD plugged into tc usb port and I also need to plug in a netflix ready blue ray player to the same port- is there a splitter I can buy to do this or what other options do i have?
    I have an extra airport extreme I am not using-could I run an ethernet cord to it and use that usb port for my second device without and problems?
    Thx

    First, yes it is possible to attach multiple devices to the TC's USB port. You will need a USB hub though. Some users have discovered that not all hubs are compatible with the TCs USB port. So you may need to shop around if the first one doesn't work.
    However, the USB port on the TC is designed primarily to handle external HDs or printers. That is, it is designed to make them available to your local network, not to the internet. So I have doubts that the BR player will be able to have full interest access via the TCs USB port.
    See this KB article:
    http://support.apple.com/kb/HT2421
    Hope this clarifies things a bit. Cheers!

  • Why can't I read from a device on my RS232 port

    I am attempting to write and read from a device on my computer's RS232 port.  I attempted to use the Basic Serial Write & Read.vi example in 6.1 with no luck(I have also attempted to use the other serial examples with no luck).  My application attempts to write a command to this device on the RS232 port and then read the response back from the device.  Everytime I run the vi I receive a timeout error. It seems the timeout is occuring during the read portion.   I have used another application(MTTTY) to send and recieve RS232 messages back and forth to this device, so I know the port and device are working.  I have entered the same port settings I am using in the MTTTY application into the vi still with no success.  One more thing, after I run the Basic Serial Write & Read.vi example, my other application can no longer read & write successfully to the device on the port.  I need to power cycle my device before my MTTTY application will again be able to communicate successfully.  Anyone have any ideas on what is going on?

    I'm not familiar with the MTTY program but your problem is extremely common and usually the result of not sending a termination character at the end of the command string. Most serial instrument require this and it's usually a carriage return or line feed character. In the LabVIEW example, right click the string control where you are entering your command and select '\' Codes Display. Type a \r (carriage return) or \n (line feed) or a combination of both, at the end of the command. Your instrument manual should tell you exactly what is required.

  • HT3887 I am trying to  pair my iphone 4 to my 2011 Kluger KX-R.  I have turned bluetooth on my phone but it keeps searching for devices and can not find any.  My computer can find my phone but my phone can not find my computer.

    I am trying to pair my phone to my 2011 Toyota kluger KX-R.  I have turned bluetooth on my phone but it keeps searching for devices and can not find any, including my computer.

    No worries. Often after iTunes updates you have to reconnect your device in order for iTunes to see it. Happens to me all the time!

  • Can I connect a device to get added LAN ports for my Airport Extreme?

    Can I connect an added device to my styetem to get added LAN ports for my Airport Extreme Router system?
    Mark Edwards

    Connect a Gigabit Ethernet switch to any of the 3 Ethenret ports on the AirPort Extreme to add as many ports as you need.
    Switches come in 5-port, 8-port, 16-port, etc versions.
    Your local computer/electronics superstore will have what you need.

  • I cannot get my iPhone 5s to Bluetooth pair with any device - it is continually searching for devices

    I want to pair my iPhone 5s with the Mini Boombox I was using with my iPhone 3Gs.
    Once the iPhone Bluetooth setting has been switched on the 5s just continually searches for devices and finds nothing - although the Boombox is beside it on my table (yes, and switched on).

    Hello Ken,
    Thank you for the details of the issue you are experiencing with your new Bluetooth Mini Boombox.  I am sure you are eager to use your new speaker. 
    I recommend reviewing the following article for steps to troubleshoot the issue you described:
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have a 3GS. Am trying to sync a plantronics explorer 232 Bluetooth headset and can't figure it out. I have Bluetooth turned on but it searches for devices and the headset never shows up. Anyone know exactly how to do this?  My tech skills are lacking

    I have a 3GS. Am trying to sync a plantronics explorer 232 Bluetooth headset and can't figure it out. I have Bluetooth turned on but it searches for devices and the headset never shows up. Anyone know exactly how to do this?  My tech skills are lacking

    I have the same blueparrott headset headset with the directions. Actually reading them just fixed my iphone pairing issue.
    Here they are in case u still need them along with what I needed to do to get mine to work with iphone 4
    Pair Headset with Phone
    Turn off headset off
    Hold down headset's MFB (large top button) until red & blue lights flash and you hear 2 rising tones, followed by 4 more tones. Must wait for all before you release the MFB button!! (I had my hubby hold the MFB while I waited for the tones since both come from the headset
    Release the MFB and follow your phone's instructions to place it in 'bluetooth' discoverable mode.  With the iphone4, go to "General" and then "Bluetooth" and turn indicator to "ON".
    This is where my issue occurred as the phone could not find the bluetooth, although it worked with my LG phone.  So after trying it several times thinking I was nuts and that the issue was with the iphone, I looked further in the blueparrot's directions and found this step that fixed the issue.
    Reset Paired Devices List
    On the bluetooth, press and hold down both the volume up & volume down buttons for 5-6 seconds.  A double beep will be heard and the list will be reset.  Pairing info for devices previously paired will be lost.
    The bluetooth directions provide this as step 4 but that did not work for my phone (see below)
    4. Once the phone discovers the headset, select "pair" and enter "0000" code and that when pairing is complete the blue light on the headset will stop flashing and phone will prompt you to 'connect'.
    This is what I had to do after resetting the device list on my bluetooth
    4. My iphone instanting discovered the headset and displayed it under 'Devices" but showed a message that it was 'not connected'.  Once I selected the device on the iphone by pressing on it then it changed to "connected". 
    Even when I turn the bluetooth on and off the device remains on the list and alll I do is select it to connect and disconnect after I turn on my blueparrott bluetooth
    I hope this helps others!   

  • Since reconnecting bluetooth on my 3G after accidently dropping (the ap not the phone) I have successfully reconnected only to find the phone continuously searching for devices. To stop excessive draining of the battery I turn bluetooth off.

    After successfully reconnecting my 3G iPhone to bluetooth (I accidently dropped bluetooth) the phone contantly searches for devices. Everything works fine now but it appears the battery is draining more rappidly because the phone is constantly searching in the background. I turn bluetooth off when I exit the but it drives me nutty. Any suggestions?

    Is it possible to find out what serial or UDID info is stored on iCloud being used by the FindMyIphone site?  The FMI website doesn't show anything but the name and the device image (which is a generic iPhone image, and definitely not the 5S )
    Unfortunately not.

Maybe you are looking for

  • How to edit a pdf file?

    I downloaded the free Adobe and i want to edit a pdf file and it wont allow me. asking me to subscribe.

  • Spry menu works fine local and turns the whole web page white when it goes live. Please help.

    Thanks in advance to anyone who helps me out with this problem.  I have been working on it all day and I took the time to design nice buttons in Photoshop and backgrounds.  It works perfect viewing it in my browser locally.  I have ran into a problem

  • FTP Adapter Errors out while translating

    Hi, I am using a FTP adapter to put a text file using a bpel process. But the FTP adapter errors out with the following error:oracle/xml/parser/schema/XMLSchema Is there a way to fix this issue?? Please advise. Thanks PS

  • Opening OA page in new window with parameters

    Hi all, Hi need to open a new page in a new window with some parameters to be passed to that page. Here is the code i have written. But i am not sure how to pass parameter in java script string String userid = new Integer(pageContext.getUserId()).toS

  • Wrong catch block is reach

    Hi, I encounter a strange behaviour in exception handling. My web app can generate pdf files, and download them. If client closes its browser window, a ClientAbortException is thrown (which is expected behaviour, I guess.) However, I can't catch it c