Communication port in use

Hi all.
We're developing an application that controls several devices via USB ports. Communication with the devices and port management are carried out by C++ dll functions which LabView executes via Call Library Function nodes.
These dll functions sometimes leave the ports open even when we stop the main program execution, so that LabView generates the error message "The communication port is in use" if we try to continue working with this particular device. The only solution seems to be to close the LabView application and enter again.
So, is there any way we can open or close these ports through LabView code and then make the communication via external code?
Regards,
Francisco
Hi all.
We're developing an application that controls several devices via USB ports. Communication with the devices and port management are carried out by C++ dll functions which LabView executes via Call Library Function nodes.
These dll functions sometimes leave the ports open even when we stop the main program execution, so that LabView generates the error message "The communication port is in use" if we try to continue working with this particular device. The only solution seems to be to close the LabView application and enter again.
So, do you know any way we can open or close these ports through LabView code and then make the communication via external code?
Regards,
Francisco

It's not clear what is leaving the ports open.  Is it your LabVIEW code? or you C++/dll code?
If you are using LabVIEW and VISA functions to work with your devices, there is a VISA close function.
If your C++ / dll code is working with the devices, then you should get that code to close the ports.

Similar Messages

  • How can i browse FP 2000 via serial port same use Ethernet port(RJ 45)?

    I am a new user for  labview.I develope my program with FP 2000 but I have some problem
      1 How can i browse FP 2000 via serial port same use Ethernet port(RJ 45)? if it can Tell me please.
      2 If  I use GSM/GPRS modem via FP 2000 rs 232 port (I under stand how to send AT command) and leave it stand alone
         Can I dial modem and browse file in FP 2000 same as use Ethernetport?
    Someone please help me.Thank you very much.

    Hi!
        First, I can say that your project involves many things, I cannot describe all features in the forum, and I'm not used with GPRS modems (my modems are base band serial modems...).
        Anyway, I would say that in your project you should proceed like this:
          1) Configure your FP 2000 module via MAX and ethernet connection;
          2) Download an embedded application to your module (build in LabView Real-Time)
          3) In your application, you should build a kind of serial port manager, and by the means of serial port you send/receive commands from PC.
        The commands from PC can include "Tell me the about the FP 2000 file system ", or "switch on line X", or anything you need.
       I think it would be difficult to use Internet exp, because you use IE with TCP/IP, and TCP/IP is over ethernet.
       I know that for Windows you can find some wrappers that make you "see" the serial port as an ethernet, but these wrapper do not exist under filed Point, and you shoul build one yourself!!!(and that's not easy).
        For example, to browse your files, you should build a VI that searches through your file system, and reports, via serial, the files present in a directory (it's an example....).
        About communication between GPRS modems and FP2000, I know nothing.  I suppose that these modems accept serial inputs, so you'll have to configure your serial port on FP 2000 with the correct baud rate, parity, and so on..... and you send your data to the modem.  The modem will transfer data in its way, no matter on how it does.
        To send data to your modem you shoud take a look to some Serial communication examples.  What I suggest you, first, is to connect the serial port of FP2000 to a PC, and test communication between PC and FP2000, without modems. Just direct cable connection!  If you're able to do this, insertion of modems is the next step, and should be quite easy.  If you're not able to make the PC receive strings of data from FP2000, over  RS232, adding modems is a further complication, and you won't come out of this mess!
       So, what I say, is just build, for now, a simple embedded application for FP2000, that, using RS232, sends data to a PC (you should see data sent with use of Hyper terminal).
        To build this application, use Instrument I/O --> VISA commands (VISA open, VISA write, and Property node should be enough, for now).
       Please, let me know if this helps......
        Have a nice (programming) day!
    graziano

  • Client communication port for workgroup servers

    We have SCCM 2012 R2 Single Primary Site in intranet. We have PKI with ADCS 2012. We are in process of mirating to HTTPS communication using certificates. We have few servers in workgroup and we plan to manage those servers with configuration manager by
    manually installing client and specifying smsmp=sccm fqdn. for lookup management point. 
    Can we change client communication port for these servers?
    For successful client communication do we need to open any ports except 443 in firewall?
     What all ports needed to be open in this scenario?

    Hi,
    You configure the Communications port for the MP in the site so they must use the same ports, you can configure alternate ports so if it cannot communicate on port 443 it tries the next port.
    http://technet.microsoft.com/en-us/library/gg712276.aspx
    443 is sufficient, the client will also try to communicate on port 10123 for Client Notification,
    http://www.google.se/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCsQFjAA&url=http%3A%2F%2Fblogs.technet.com%2Fb%2Fconfigmgrteam%2Farchive%2F2012%2F09%2F27%2Ffast-channel-for-system-management.aspx&ei=1dAhU7qqOIL8ygPb1IHQAQ&usg=AFQjCNF4_G2sZBMbDDtJa95LBx7EYYBrRw
    But it should fallback to 443 if not available as well.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Error on database communication port

    Dear Guru's,
    While installing solman, database communication port 5912 has been used by another instance which was running on the same host. Could any one suggest is it possible to have any other port number other than 5912.
    regards,
    Guna

    Hi,
    Guess you are using DB2?
    try this
    db2set DB2COMM = TCPIP to set the value.
    Suggest you to check database manager configuration parameters once before changing the parameter.
    Feel free to revert back.
    -=-Ragu

  • Java and communication port

    Hi all
    I want to know if java can communicate with a device , for example a TPE (Terminal de Paiement Electronique), via the PC communication port . I want to send and receive informations between a java stored procedure and the TPE.
    Thank you very much indeed.

    In case if you find any Win32 Calls or C++ calls which accomplish your requirement, You might write an JNI wrapper over it and use those java APIs.
    -Suria

  • CardTerminalException:Can't open communication port

    Hi,
    I work with OCF, WinNT and I configure also the opencard.properties to use a GemPC410 Reader in COM3. I get the CardTerminalException: "Can't open Communication port".
    Has anybody an idea what other reasons can provoke this error, or better how to avoid it??
    Thanks in advance!
    Best regards
    deng

    Hi,
    I work with OCF, WinNT and I configure also the opencard.properties to use a GemPC410 Reader in COM3. I get the CardTerminalException: "Can't open Communication port".
    Has anybody an idea what other reasons can provoke this error, or better how to avoid it??
    Thanks in advance!
    Best regards
    deng

  • What port is used by Groupware connector to communicate with SAP CRM?

    Hi!
    I've been trying to find what port is used by groupware connector when it is communicating with SAP CRM, but all I've found is that is uses SOAP over HTTP.
    Our security team only wants to open the relevant port and I haven't found the port....
    Does anybody know what port is used?
    Thanks!
    rollo

    What gives you an impression that a seperate program is called to write file at OS level.....it could be the program running behind the F110.....try checking the same...and look for GUI_DOWNLOAD in the program.

  • I want to do communication via ethernet using TCP/IP

    i want to do communication via ethernet using TCP/IP i did it but code is runing but im not getting any output

    Look on this easy example: http://www.labviewtutorial.eu/viewtopic.php?f=14&t=328
    You will find there two identical VIs (only port numbers are different). One is for PC1 and other for PC2. If you will get prodlems starting VIs, so look on your firewall settings, you have to unlock ports used in these VIs.
    LabVIEW Portal

  • JSSE Communication Port

    Hi,
    I have a query about JSSE. When JSSE apis are called to communicate over a SSL channel, does JSSE use any fixed port/range of ports?
    To give a background, assuming a machine hosting JSSE apis is behind a firewall and need to open only the ports specified, then can we specify communication ports which will be used by JSSE?
    Prasad.

    Hi,
    I have a query about JSSE. When JSSE apis are called
    to communicate over a SSL channel, does JSSE use any
    fixed port/range of ports?
    It dependes what do you mean for "JSSE apis are called to comunicate over a SSL channel".
    If you are developing a server supporting JSSE, then you are allowed to use any port you want.
    If you are writting the client side app, JSSE will open any local port it needs.
    To give a background, assuming a machine hosting JSSE
    apis is behind a firewall and need to open only the
    ports specified, then can we specify communication
    ports which will be used by JSSE?Read above.
    Hope this helps.

  • New which ports to use.

    Hi
    I was wondering which port to use, and how many are there, also would it be OK to set all programs with ANY port, or do certain programs need certain ports and are some faster than others?
    George

    Applications that communicate via system ports have that information embedded in the program. You should not make changes as this could cause applications to stop working properly.
    If you are trying to protect your computer from outside access then use the built-in firewall via the Security preferences. Through the firewall you can specifically block ports from unauthorized access.
    LittleSnitch is a diagnostic tool. It is intended mainly to allow programmers to monitor communication information in order to better design their programs. It also can be used to detect unauthorized access to the computer if it's believed that there is such activity and to find out from where the access has originated. It is not intended as a user application.

  • Which ports oracle use for replication..

    Hi All,
    I want to know which ports orcale use for replication.plz reply me quickly.
    Thanx in advance

    This is configurable. By default, listeners will run on port 1521, but sites can specify multiple and/or different ports. Depending on the OS of the database, connections made on that initial port may be redirected to a different port (Windows) or may do all the communication on the listener port (Unix). Windows databases can be configured to do all communication on the listener port, though there may be a performance impact to doing so.
    Justin

  • To run OHS at port 80 using solaris role based access control

    Hi.
    I already know & have done setuid root to ohs/bin/.apachectl to allow ohs to listen to port 80. Now on a new OFM 11.1.1.4 install, I want to use Solaris Role Based Access Control (RBAC) instead. Is it possible? RBAC does work as I can run a home built apache2 httpd at port 80 withOUT suid root.
    On Solaris 10, I enabled oracle uid to run process below port 1024 using RBAC
    /etc/user_attr:
    oracle::::type=normal;defaultpriv=basic,net_privaddr
    Change OHS httpd.conf Listen from port 8888 to port 80.
    However, opmnctl startproc process-type=OHS
    failed as below with nothing showing in the diag logs:
    opmnctl startproc: starting opmn managed processes...
    ================================================================================
    opmn id=truffle:6701
    0 of 1 processes started.
    ias-instance id=asinst_1
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    ohs1/OHS/OHS/
    Error
    --> Process (index=1,uid=187636255,pid=25563)
    failed to start a managed process after the maximum retry limit
    Thx,
    Ken

    Just to add my two cents here.
    The commando used on Solaris to assign the right privilege to bind TCP ports < 1024 is:
    # usermod -K defaultpriv=basic,*net_privaddr* <your_user_name>
    Restart the opmnctl daemond.
    After that OHS/Apache user can bind to lower TCP ports.
    Regards.
    Edited by: Tuelho on Oct 9, 2012 6:05 AM

  • How to determine which IP address and port is used to make DNS queries?

    I am using JNDI/DNS API to query a Enum server (Tel URI resolution in VOIP world) what is a DNS server.
    But I have many network interfaces, in a VLAN environment, and I must to specify from which interface (and port)
    all the requests are sent.
    When I read the code of JNDI/DNS API (in JDK 1.5) and specially the DNSClient class, I can see that the
    DatagramSocket is created without parameters... : udpSocket = new DatagramSocket();
    How can I specify the IP address and port to use for my client???
    Thanks for your help.

    I must to specify from which interface (and port) all the requests are sent. You don't have to specify the interface unless your static unicast routing tables are incorrect, and you never have to specify the port unless some lunatic is in control of your firewall.

  • "Port In Use" error message when trying to sync Palm m500 to Windows Vista machine

    An error message on my Palm displays "Error: Serial Port in Use (Serial 0307)" when I try to sync my Palm m500 to my Windows Vista (32 bit) Home Basic machine. It worked until about 3 months ago and I don't have a restore point that far back to try System Restore. I've upgraded to Palm Desktop 6.2.2 (was using 4.xx) and downloaded the PalmHotSyncSetup from Pimlico Software but nothing helps. Any ideas are appreciated.
    Post relates to: Palm m500

    I would try connecting the Palm's cradle, with the Palm in it, to your PC and then, in Device Manager, right-clicking on Palm Handheld #2 and selecting Uninstall Driver.  Palm Handheld/Palm Handheld #1 could be visible if you connect the Palm to USB port you may have tried using perviously.
    After uninstalling Palm Desktop, reboot the PC, make sure Palm Desktop 6.2.2 is installed (since you are using Vista) and then try reconnecting the Palm.
    One last thing: Make sure that you are using a 32-bit version of Windows.  There is no 64-bit USB driver support from Palm or ACCESS.  If you do have a 64-bit version of Windows Vista installed, that would clearly explain why you are having so much trouble getting your m500-series PDA to sync. This thread tells you how to check for a 32 or 64-bit install of Windows.
    Alan G

  • If I already have an Airport Express Base Station, can i hook an external hard drive into it's USB port and use that hard drive with Time Machine?

    If I already have an Airport Express Base Station, can i hook an external hard drive into it's USB port and use that hard drive with Time Machine?

    No, and that shouldn't be done with an AirPort Extreme or Time Capsule.
    (66017)

Maybe you are looking for