Detect remote panel connections?

Is there a way for my VI to 'detect' when someone has connected to it with a Remote Panel and requested control?
I have an issue (due to the size/complexity of my VI I'm sure) that when a RP gains control, after a period of time, the main VI begins to slow down and starts to lose data (it's coming from a TCP connection)! 
I'd like to be able to see when a RP gains control, and automatically log them off after a period of time (5 min?).  I know that there is a connection time-out on the web publishing page, but it appears to only come into play if 1 RP has control and another requests it.  I need to be able to limit the control time of a single RP.
Solved!
Go to Solution.

Cory,
Well, it almost worked...
I'm attaching my little test program 'RP Control.vi'.  I've compiled this into an executable that's in my server path, so I can get to it from my laptop (on my network).  When I run it from my server, I can press my 'Start' button and nothing happens--no client RP's are connected, so this is as expected.
When I connect via my laptop to the server, my laptop is now the remote client, but it's hasn't requested control -- again, nothing happens when I press my 'Start' button.
When the laptop requests control of the VI, and I press the 'Start' button from the laptop, I see all my data fields filled in, and I show my calculated 'End Time?' which is 1 minute after the laptop got control. 
I can then keep pressing my 'Start' button, and see the 'Time Now' update, and when 1 minute elapses, I see my 'Close' LED turn on, indicating I should have activated the 'Close Connection To Client'. 
However, the laptop still has control of the VI...it hasn't returned to the server. 
Any suggestions as to what I may be doing wrong, or does the 'Close Connection To Client' work differently?
<edited>
Looking at the Method - 'RP.Close Connection To Client' does this return control of the VI to the server copy (which is what I want to do), or does it try to completely disconnect the Remote Panel (which is not what I'm looking for)?
Message Edited by Steve257 on 09-17-2009 02:47 PM
Attachments:
RP Control.vi ‏22 KB

Similar Messages

  • Real-time 8.6 Remote panel connection exceeds max number of licenses- with no connection​s

    I've been using the remote panel right along with no problems to connect to my Compact Fieldpoint.  This morning I accidently opened the connection twice on the same computer and tripped the "Remote panel connection exceeds max number of licenses" error.  Now it will not let me connect anymore from my computer.  I've tried clearing cookies, cache and history in Internet Explorer and rebooting my computer.  I've fired up the Remote Panel Connection Manager which shows no connections, and the NI License Information window does not show any connections which have been denied due to max # of clients being exceeded.  Is there a way to reset this without having to reboot my RT controller?  I'm running RT8.6 and LV 8.6 Full Dev System and understanding that it should come with 1 remote panel license. 
    Thanks
    maat
    LV2014

    The boss wanted to see an updated feature, so I was forced to deploy a new version and reboot.  Problem went away as I suspected it would. 
    I did manage to make the same mistake again this morning (launch the remote panel in 2 different MSIE windows) and after closing them both I could reconnect.  Must be a glitch or a bug?  It'd be interesting to see if anyone else has this problem.  For now...solved, but it would be nice to see a way to fix this without rebooting.
    Message Edited by maat on 10-22-2008 10:10 AM
    maat
    LV2014

  • How do I run Remote Panel Connection Mgr on server with just runtime & exe

    We are running a LabVIEW 6.1 executable on a PC with Windows2000. We have remote panels enabled and the system seems to be working fine. However, we would like to be able to run the Remote Panel Connection Manager in order to monitor the load we placing on our communications system. I can run it while in development mode, but the option is no longer available under Tools once I create the exe. On the actual server machines we do not have the full development system (only the runtime engine) installed. Is there a way to run the Remote Panel Connection Manager while running just the exe with the runtime engine?

    The manager is a separate VI. It's located in \project\remotepanel.llb. You could try building an separate exe from it or including it as a support file in the exe you want to run as a remote panel. If it does run, you might have to create a custom menu in order to call it from your exe.

  • Is it possible to limit the number of remote panel connections to a vi?

    Hello,
    I have an application running on a RT PXI and I'm using remote panel to access it. My licence allows me to have multiple remote connections and it's ok as I sometimes need to open multiple remote panels at the same time.  However, I would like to limit the number of connections to 1 for a particular  VI.  Is it something that can be done?
    Regards,
    Patrick Lessnick 
    Solved!
    Go to Solution.

    Patrick:  If you right click on your target PXI system in the project exporer, select Properties>Web Server>Browser Access you can select who you let have access to your VIs.   Likewise, in the Visible VIs section of Web Services you can limit which of your VIs you want people to be able to see.
    If this isn't enough control, from your run time application on the PXI system you can write a startup VI (in parallel with your main application) to monitor the Remote Panel: Connections to Clients Property of the real time server.  Once this monitor application sees a connection you can take any number of actions to prevent more than one connection, deny access to specific IP ranges or what have you.
    I am assuming you are using LabVIEW 2009 and MAX 4.6.1 but it may apply to earlier editions.
    Hope this helps.
    Bill

  • "chaining" remote panel connections

    Folks,
    I am considering an application design for data acquisition that would be roughly as follows:
    Client (web plugin) connects to "main" server. This server will be for viewing files, previous data, printing data, etc.  When it is time to acquire new data, the "main" server connects to "DAQ" server, which has the acquisition hardware connected to it.  For this to work, the "DAQ" server needs to send it's front panel to the "main" server which then sends it on to the client.  Before I go off requesting funds and time to do this, I want to make sure it is possible.  I don't see any reason this wouldn't work, but I want to verify.
    Additional information:  The client can't connect directly to the "DAQ" server.  They are on different networks with the bridge being the "main" server.
    Thanks,
    -M

    nathand wrote:
    Gary117 wrote:
    If your main server and DAQ server are both implemented in Labview, then it is possible (if I understand your setup correctly). You'll need a subpanel on the front panel of your main server. If you pass the subpanel reference to the DAQ server, it can insert itself into the subpanel using a property node.
    I haven't tried this, and don't have a setup available to test this right now, but the documentation says that you CANNOT put a remote VI into a subpanel: "You also cannot load the front panel of a VI in a remote application instance". So I can't see how this would work.
    I hadn't tried it before with remote machines, but I didn't realize that would be an issue. That's dissapointing.
    You may have to send data directly then. Depending on the data you're acquiring and how it's used, you may be able to do some preprocessing on the DAQ server to minimize the amount of data you have to send across the network.
    Sorry I wasn't more help

  • Detect remote desktop connection

    Hey,
    I want to detect if the current user-session is a remote or local session. I have only LabVIEW 2012 at hand, so I think I need it to switch between absolute and relative mouse scrolling detection dependent on the session type.
    My approach is to check this by executing 'qwinsta' via the System Exec.vi:
    however this doesn't work at all While standard commands like 'cd' render no problem, this one throws just an error 'command not found'. If I start this command manually on a command line it just works without any problem.
    So I hope you can give me hint on the problem - or to an way more easy solution to the whole problem.
    Thanks in advance, Erik

    thank you very much dan_u.
    way more complex than my polling version, but surely more sophisticated - i will give it a try
    in the meantime, 5 hrs of google searches also led to the answer of my initial question:
    i've running 32 Bit Labview on a 64 Bit Windows...thats all. As this is the case, all commands I send to cmd are executed in the 32 Bit Version of cmd.exe, as this version is automatically called from my 32 Bit LabVIEW.
    There is no qwinsta in 32 Bit cmd.exe.
    Calling "c:\windows\sysnative\cmd.exe" instead of "cmd" let you escape the 32-Bit Sandbox of SysWoW64 (but not without complaining of my antivirus) and qwinsta returns the expected result.
    Reference:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/5bfc1d5b-1162-495a-bc89-252de06e4baa/...
    Thanks,
    Erik

  • Detect remote desktop connection in Windows XP

    Dear experts,
    I have a single service thread application which do an activity at regular intervals.
    I have made a provision that only one instance of this thead runs at a time.
    However,this is not solving my issue to much extent.
    I want that i should be able to detect if current operating system session is RDP or not.
    I tried "os.<properties>" but none of such exists.This is strange !.
    Plz help.

    I just wonder why people do not plainly accept ignorance instead filling jittery, as we can make from these
    rude comments posted. This is the exact solution i worked on .
    //Detect local or remote session
    import com.sun.jna.Library;
    import com.sun.jna.Native;
    import com.sun.jna.ptr.IntByReference;
    import com.sun.jna.win32.*;
    import com.sun.jna.examples.win32.Kernel32;
    public class DetectSession
    boolean ret;
    DetectSession()
    ret = isLocalSession();
    if (ret == true ) {
    System.out.print("Local");
    else {
    System.out.print("Remote");
    public interface Kernel32 extends Library {
    public int GetCurrentProcessId();
    public boolean ProcessIdToSessionId(int x,IntByReference y);
    public int WTSGetActiveConsoleSessionId();
    public static void main(String args[])
    new DetectSession();
    public static boolean isLocalSession() {
    Kernel32 kernel32;
    IntByReference pSessionId;
    int consoleSessionId;
    Kernel32 lib = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);
    pSessionId = new IntByReference();
    if (lib.ProcessIdToSessionId(lib.GetCurrentProcessId(), pSessionId)) {
    consoleSessionId = lib.WTSGetActiveConsoleSessionId();
    if(consoleSessionId != 0xFFFFFFFF && consoleSessionId == pSessionId.getValue()) {
    return(true);
    return(false);
    } // isLocalSession
    }

  • Remote panel connection broken only when VI running

    Using Web Publishing Tool, I have created a HTML page with an embedded VI and I saved it in LV Web Server's root directory.
    I can take the control of the VI from my computer(using http://localhost ...).
    If I want just to see the VI, it's OK if the VI is not running.
    If I want to view the VI while it's running, after several seconds the connection with the server is broken.

    What is the processor loading while your VI is running? Is it possible that its loading down the processor too much? Is your application using a network connection for anything that could be conflicting with the server connection?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Errors connecting to RT remote panel

    I am running into a problem connecting to a remote panel on my RT target. The vi I am trying to access is included in the startup.rtexe executable, and I can verify its operation with the execution trace tool. However, when I try to open a remote panel connection from the host machine, I get a variety of errors, including 66 (connection closed by peer) and 63 (connection refused by server).
    I have configured the vi in question to allow access to all machines (using * wildcard), and also (just in case) included access for the specific IP address of the host. I have tried several different port numbers, including 80, 3363, and 50000, since I seem to find conflicting advice on what ports are to be used for TCP/IP communication. I have even tried enabling web server access, although I don't think I should need to. All to no avail. I'm probably just leaving out one crucial little parameter, but I can't seem to figure it out.
    Any suggestions?

    Hi TwoCentsHappy,
    A LabVIEW realtime application should be programmed as though it doesn't have a front panel. You can create remote front panels for your RT application to see if your application is running. Here is a link  that gives you the instructions on creating remote front panels.
    Good luck!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer

  • Remote Panel and DSC interfering?

    Hi, I wonder if DSC or OPC is interfering to view my remote panel in a executable, since I installed them and now I cannot see my web page. I mean the instructions says close Labview to gain acces with the executable, does DSC or the shared variabel Server or something is interfering?
    What happened:
    I have a program which monitors temperature for rooms with fruit, We acquire the temps through modbus RTU, and We see that info through internet.
    First I did it with the modbus libraries, and It worked, We had the web page working through remote panels and the web publishing tool.
    But now I saw the DSC toolkit for Labview, and excited about that I migrated the whole functionality to the IO servers, and until the very end, when everything else works ok, the web page or remote server doesn't works, works with the VI but not with the EXE.
    The first time I followed this, and I did this time again with not succes
    http://digital.ni.com/public.nsf/allkb/7F95D43D3F50FCAC8625710E000068E1
    Currently state:
    My Web server is started and works in development, I made a webpage named TRY.html, and it works in Labview with the VI.
    I know that the plugin doesn't works on chrome, but just to let you see that the problem is not IEXPLORER, whetn the web page is static it works on chrome too.
    With IEXPLORER (right) it works in chrome (left)  it doesn't
    Working on IExplorer
    So I followed the steps from the instructions, added the web page to my project, added to the build, and built
    Then I modified my NIconfigserver file, and CLOSED labview entirely, the tutorial says so, I closed at least as much as I used to do before.
    My ni config
    # Web server configuration file.
    # Generated by LabVIEW 14.0
    # 13/06/2015 11:44:16 p. m.
    # Global Directives
    NI.AddLVRouteVars
    ErrorLog "$LVSERVER_ROOT/logs/error.log", level=2, anew
    TypesConfig "$LVSERVER_ROOT/mime.types"
    LimitWorkers 10
    LoadModulePath "$LVSERVER_ROOT/..;$LVSERVER_ROOT/modules;$LVSERVER_ROOT/LVModules"
    LoadModule LVAuth lvauthmodule
    LoadModule LVSnapshot lvsnapshotmodule
    LoadModule LVRFP lvrfpmodule
    Listen 8000
    # Directives that apply to the default server
    NI.ServerName LabVIEW
    DocumentRoot "C:/SMC/data"
    InactivityTimeout 60
    SetConnector netConnector
    AddHandler LVAuth
    AddHandler LVSnapshot snap
    AddHandler LVRFP
    AddHandler LVSnapshot
    AddHandler fileHandler ""
    AddOutputFilter chunkFilter
    DirectoryIndex index.html
    My ini
    [SMC]
    server.app.propertiesEnabled=True
    server.ole.enabled=True
    server.tcp.paranoid=True
    server.tcp.serviceName="My Computer/VI Server"
    server.vi.callsEnabled=True
    server.vi.propertiesEnabled=True
    WebServer.Enabled=True
    WebServer.TcpAccess="c+*"
    WebServer.ViAccess="+*"
    DebugServerEnabled=False
    DebugServerWaitOnLaunch=False
    saveFloaterLocations=True
    find.viListFlags=0
    LastErrorListSize=0,0,0,0
    paletteStyle="NamedIcons"
    And so, I open my EXE, then reload the webpages, and I can see that the web server is started, because it shows the html, but I cannot link to my EXE. It says that can't find my VI
    Requested VI is not loaded into memory on the server computer
    If I close the EXE the server stops
    Remote Panel connection refused by specific server, Make sure Labview Web server is enabled
    And that's my history
    It's always hard for me to get the web page working, but this time I've spent hours without success
    I did the test in my development pc and in the target PC and is the same, on these PC's the webpage was working before using DSC.
    So any help will be appreciated
    My best regards

    The DSC Runtime Engine will be sufficient for the deploying the project to a new computer. The Run Time Engine is equivalent to the DSC Module, but you can't do any programming with it. You will need to purchase a separate license for the Runtime license for each deployment computer also. 
    What is the DSC Run-Time System and When Should I Use It?
    http://digital.ni.com/public.nsf/allkb/E56DB8726DB68F288625770E00594351
    Thanks,
    Frank
    Application Engineer
    National Instruments

  • How to make a remote panel file dialog open remote directory from any computer

    Hello to everybody. I am using Labview 6.1 and I would like to know how to make a remote panel file dialog open remote directory from any computer (Not only from a specific computer. If I open the file with a specific computer, I have to conect the path of the remote machine, but if I don´t know which remote computer is going to run the aplication, how can I do it?)?

    Hi!
    first you have to know progammatically the name of the remote pc connected to your server: this is a problem!
    I did not find a straigth way, LV 6.1 doesn't allow much progammatic control on the remote panel connection feature, but I'm confident that in the next LV version this will be improved!
    The point is that the Remote Panel Connection Manager (from the Tools menu) has all the informations about the connection: client name, server vi and whatever.
    This application is embedded in the \PROJECT\REMOTEPANEL.LLB and consists of a set of password protected vis.
    So here's the trick: use VIServer to grab data from the rpcm Get Server Data.vi when the Remote Panel Connection Manager is in run mode. By this you get all the informations (not only client name)o
    f the remote panel connection. See my example.
    By the way use client machine name to build the file dialog function input path.
    If anybody has an alternative method it would be more than appreciated to share it.
    Good luck,
    Alberto Locatelli
    Attachments:
    get_remote_machine_data.vi ‏151 KB

  • How to set up the time a user can control a remote panel

    Hi Everybody.
    I'm doing an application using remote panels, however, I can't find information about how can I limit the time a user can control the remote panel.
    I've seen in the Property Node in Remote Panels:Connection To Clients the value "Control end time" which I supose it contains the time when the control is returned to the server but I have no idea how to modify this.
    Best Regards.

    Hi inner_trax, actually LabVIEW does not provide such a feature natively; however you can start thinking about having your remote panel VI shutting down after some specific time and then having in your server another VI running always and that each specific time ti starts the remote VI; think about it, it may help you reaching your goal.
    Eric NI

  • Fieldpoint embedded data logger and remote panels license (5)

    Multiple use remote panels license (5) does not allow multiple access to cfp 2120 realtime embedded datalogger (all pc's on the same subnet).  Error message:"remote panel connection exceeds maximum number of licenses."  Licenses installed in ni-rt>system>share>licenses on the remote system?????????????????????????????

    Hi, thanks for your help=) I've manage to drag the file into my targeted controller. I am now doing the setting of the data logger program, but there's one thing I'm unsure of. May I know what does it mean by the cFP controller clock? http://zone.ni.com/devzone/cda/tut/p/id/3219 . Thanks. =)
    Log On Startup
     Start logging when the controller powers up.
    Start Log Time
     The time to start logging.
    Stop Log Time
    The time to stop logging.
    Note: Make sure the clock is set correctly on the controller. The settings described above refer to the cFP controller clock.
    Log Rate
    The number of milliseconds to wait between each acquisition.
    FP Drive For Data Files
    The drive to store the log files in. The C: drive is the default for all cFP controllers. If you want to save to the removable CompactFlash drive on the cFP controller, select the D: drive.
    Digital "Pause" Line
    The Digital Input item to use as a "pause" button for data logging. Logging pauses when the signal is high. When the signal goes low again, a new file is created and logging continues if appropriate.
    Note: Use only Digital Input items for the Digital "Pause" Line.
    Tip: You can use DIP Switch 3 to block the current data from being logged. This switch works the same way as the Digital "Pause" line.
    Logging Session Tag
    Is stamped on the spreadsheet that the data logger creates.

  • What are the network requirements for the Remote Panel Server?

    What are the network requirements for the Remote Panel Server?
    I've been trying for a while now to setup a Remote Panel.  I can connect to my computers remote panel from other computers on my LAN but nowhere else.  
    When ever I use the web publishing tool it gives me a URL in this format:  http://Computer-Name.Corporate-Name.local:8086/VI-Name.html Apparently this means I have a local DNS server and this URL has no meaning from the public.
    When I try connecting with the Operate>>Connect to Remote Panel..., I get this error message:
    "Connecting to remote panel server...
    Remote panel connection refused by specified server: Make sure LabVIEW Web Server is enabled on specified server"
    I got the same error when I tried to host a remote panel from my laptop at home, on my Wi-Fi.  Is there some network or firewall setting I'm not seting?  Could it be my server or router or private network?
    My goal is to be able to host Remote Panels from my laptop while I am travailing internationally, by using 4G mobile internet.  Is that even passable?
    Solved!
    Go to Solution.

    Over_Nyquest
    Have you enabled the Remote Panel Server in the Web Server options on the server?
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • Remote Panels and LabVIEW 2009

    Hello,
    I have updated my real-time PXI application to LabVIEW 2009 (Pro)  and I'm now trying to connect to it with remote planels.  I can only have one remote panel opened.  The second one gives me the "Remote Panels connection exceeds maximum numbers of licences"  The problem wasn't occuring in LabVIEW 8.5 and I have the remote panel license (unlimited) is actived in the license manager.
    How this can be resolved?
    Regards,
    Patrick
    Solved!
    Go to Solution.

    Have you transfered the license files to the controller since the switch to 2009?  There should be a .lic file under ni-rt>>system>>shared>>licenses on the controller.  Is that present on your system?
    Justin Parker
    National Instruments
    Product Support Engineer

Maybe you are looking for

  • IOS 7 layer illustration didn't work on iPhone 4, any suggestion?

    Hi, Anyone have the solution to resolve this? so that my iPhone 4 also be able to look cool on this layer display ...and the transparent effect is not quite working on iPhone 4 as too...

  • Starting Over - Making a functional OS X Server

    Friends, I need some help here. I built my OS X Server first as an Advanced Server and frankly it was about as unintuitive as I've ever seen, Novell OES, SUSE Linux, Microsoft were all easier to get the piece parts working. I searched online for book

  • Should I get E6?

    Should I get E6? Heard a lot of problems. Especially the notification light. Can someone tell me if the new batch of phones have this bug fixed? Also is the phone laggy sometimes?

  • Add a button to jcombobox

    i want to add a second button to JComboBox, just to the right of the drop down button. i don't have a clue how to do this. I want the solution to subclass JComboBox if possible. any suggestions?

  • Database Connection Error Hyperion Strategic Finance

    hello, I Am using the Oracle Hyperion Vlamis Demodrive (jun 2009). All Strategic Finance Services are started but no connection to the database can be made. VMWare Workstation 7 is used. Anybody some tips and tricks? Thanks in Advance Bas