Help debugging an internet toolkit/telnet program

I'm using internet toolkit in order to program a telnet session for an intelligent power control unit. My program appears to be working...the data LED flashes when I send info to the instrument, but it doesn't respond properly (IE the power won't be turned off/on). Is there anyway to debug this error by seeing a replica of a telnet window and see what exactly is being entered? (the commands are very picky...any spaces before or after command will throw it off). I have attatched the application if it is of any use to anyone. Right now, only case 3 and stop have the code i'm going to insert. the @@@@ is the pword being sent to the unit in order to start the session.
Attachments:
Example_IPC_2.vi ‏142 KB

Sorry, I can answer re: "seeing a replica of a telnet window and see what exactly is being entered? "
Is your "byte written 2" correct?
If not, it may be due to you send ASCII characters and not hex. Right-click on your string constant and select "hex display" to enter the values as hex.
Do you have any indication the password is working correctly i.e. does a led light to indicate logged on?
Don't have that toolkit installed on this machine so that's as far as I can go for now.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Internet Toolkit CGI-programs

    Does anybody have some experiences with rograms. How much time can I calculate
    for developing and what are the problems with the MS Internet Explorer?
    Thanks for your help
    Best regards
    Nico Zalbertus

    "Nico Zalbertus" wrote:
    >>Does anybody have some experiences with rograms. How much time can I calculate>for
    developing and what are the problems with the MS Internet Explorer?>Thanks
    for your help>>Best regards>Nico Zalbertus
    Nico,
    one thing to consider is that the cgi vi's require that you use the G server,
    therefore if you have a website that is hosted by 3rd party you may run into
    complications.
    pat

  • Labview 2010 and internet toolkit 2012

    We at our company are using labview 2010 for creating quick test applications.
    I've recently created a program that uses features that are linked to the internet toolkit.
    When creating an installer and installing the application on another system it didn't work, i later found out that you need internet toolkit installed in order to use these features.
    In order to install the toolkit i have to install labview. Is it also possible to just have the runtime engine installed (2010 version) together with the interInternet toolkit 2012 in order to use these functions?

    Like mentioned before the internet toolkit does not have to be installed on the target PC. If VI where missing from the executable, it will not run at all and return an error stating it is missing VI's. What I think happens is that the toolkit VI's are in an error state but since you do not stop the loop on an error the loop will just continue to run and because of the error it is not doing anything. You can do a couple of things:
    1. Debug the executable. How that is done is described in the following KB:
    http://digital.ni.com/public.nsf/allkb/8DA679805915DE40862572D5007B2F70?OpenDocument
    When you are connected to the running executable you can use the normal debugging methods like probes to see what happens. Especially the error line would be good to monitor.
    2. Let the loop stop on an error. The executable will then show the error (if any) in the error cluster.
    3. Monitor the error line within the loop to see if there is an error occurring.
    Let me know what the outcome of one of these actions is.
    Regards,
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.

    why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.
    The created program is not performing a command I have written when it tries to connect to the internet, it must be Labview that is doing it. How do I stop this from happening? 
    Any help would be very appreciated.

    It looks that way..
    "When LabVIEW starts it contacts the service
    locator to removes all services for itself. This request is triggering
    the firewall.This is done in case there were services that were not
    unregistered the last time LabVIEW executed- for example from VIs that
    didn't clean up after themselves"
    This is not yet fixed in LV2009.
    Message Edited by Ray.R on 11-04-2009 12:25 PM

  • I get the error "Cannot open port" when I want to display the directory content of one FTP servers with LabVIEW's internet toolkit functions. What is the problem? I'm logged on on the server.

    Is anyone experimenting this kind of problems or has resolved it? Thanks. I use LabVIEW 6.1 with Windows 98.

    Squish,
    This forum is for CAN questions. I would strongly urge you to repost your question to the LabVIEW General category and this is a LabVIEW question.
    Also, does the FTP Browser shipping example that comes with the Internet Toolkit work? If it does, then I would suggest studying that example. If it does not, then I would suggest reposting your question and giving much more detail about which VI is giving you the error and a general overview of the program.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Help Debugging method

    Hi:
    Can someone help me debug and correct following program?
    The error message I receive is Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
    String index out of range: 1
    at java.lang.String.charAt(String.java, Compiled Code)
    at RemoveDuplicates.key(RemoveDuplicates.java, Compiled Code)
    at RemoveDuplicates.main(RemoveDuplicates.java:12)
    The code is as follows:
    class RemoveDuplicates
    public static void main(String args[])
    String keyword = args[0];
    System.out.println(key(keyword));
    public static String key(String keyword)
    {String temp = "";
       for(int i = keyword.length()-1; i > -1 ; i--)
       if(i == keyword.indexOf(keyword.charAt(i)))
        temp = keyword.charAt(i)+ temp;
        keyword = temp;
    return keyword;
    If I change the code as follows it will run without error but I need to put the code in a method as part of a larger program.
    class RemoveDuplicates
    public static void main(String args[])
    String temp = "";
    String keyword = args[0];
    for(int i = keyword.length()-1; i > -1 ; i--)
    if(i == keyword.indexOf(keyword.charAt(i)))
    temp = keyword.charAt(i)+temp;
    keyword = temp;
    System.out.println(keyword);

A: Help Debugging method

Here's your method corrected - albeit with some renamed variables, a variable addition and some reformatting...
  public static String removeDuplicates(String s)
    String temp = "";
    for(int i = s.length()-1; i >= 0 ; i--)
      char c = s.charAt(i);
      if(i == s.indexOf(c))
        temp = c + temp;
    return temp;
  }The only functional change is the removal of the line in the if statement body of "s = temp"... This would cause the StringIndexOutOfBounds and would also lose the as yet unprocessed characters.
Here also is a version which trades off a higher memory usage to avoid creating a lot of Strings and rescanning the original String...
  public static String removeDuplicates(String s)
    boolean[] foundChars = new boolean[Character.MAX_VALUE+1];
    StringBuffer sb = new StringBuffer(s.length());
    for(int i = 0, j = s.length(); i < j; i++)
      char c = s.charAt(i);
      if(!foundChars[c])
        foundChars[c] = true;
        sb.append(c);
    return sb.toString();
  }Hopefully these both work...
Talden
PS: Don't forget those dukes...

Here's your method corrected - albeit with some renamed variables, a variable addition and some reformatting...
  public static String removeDuplicates(String s)
    String temp = "";
    for(int i = s.length()-1; i >= 0 ; i--)
      char c = s.charAt(i);
      if(i == s.indexOf(c))
        temp = c + temp;
    return temp;
  }The only functional change is the removal of the line in the if statement body of "s = temp"... This would cause the StringIndexOutOfBounds and would also lose the as yet unprocessed characters.
Here also is a version which trades off a higher memory usage to avoid creating a lot of Strings and rescanning the original String...
  public static String removeDuplicates(String s)
    boolean[] foundChars = new boolean[Character.MAX_VALUE+1];
    StringBuffer sb = new StringBuffer(s.length());
    for(int i = 0, j = s.length(); i < j; i++)
      char c = s.charAt(i);
      if(!foundChars[c])
        foundChars[c] = true;
        sb.append(c);
    return sb.toString();
  }Hopefully these both work...
Talden
PS: Don't forget those dukes...

  • How to debug a authority check in program and a authorisation object in tco

    Can anyone tell me how to debug a authority check in program and a authorisation object in tcode
    i just want to know the flow of authorisation object in debugging how user is assocaited with authorisation object and roles.
    i know if sy-subrc ne 0 is authorisation failed ,so please help me anyone on this.
    every time when i put breakpoint ,if its program level only, i am able to decide only through sy-subrc but iam unable o view the flow .

    flow cannot be seen, we have to be based on sy-subrc only...
    you cannot see the flow in read table... describe table... transfer...
    the authorization object will be assigned to the data element, that data element has some realtion to the roles given to the users. So if the role of the user and data element value doesnt match the sy-subrc NE 0.

  • Internet Toolkit 6.0.1 and TCP error 66

    FYI for anyone interested.  I just experienced a problem upgrading Internet Toolkit from 6.0 to 6.0.1.  (I also upgraded LV 8.2.1 to LV 8.5 concurrently).  I am using "URL Get HTTP Document.vi" to get a small (1KB) text file from the web server, and it gave me error 66 when I upgraded, whereas it was working perfectly before.  Switching back to version 6.0, it is now working again with LV 8.5.  I've wasted enough time on this one and don't have the patience to dig further, but the error occured in the "TCP Buffered Read.vi" component.  I did a VI comparison on both of these and nothing changed between versions.  Error 66 presumably has something to do with this.
    --David Moerman
    Solved!
    Go to Solution.

    The same message with the links to the images. 
    Hi David Moerman. This error occurs in the VI "TCP Buffered Read.vi" (found at LabVIEW-directory\vi.lib\addons\internet\utils\tcputil.llb\TCP Buffered Read.vi). In the image below, you can see the original VI code and the problematic portion (highlighted). 
    There are two possible workarounds for this problem.
    Workaround 1: change the number of bytes to read (replace 1024 by 1). Look the image below.
    Workaround 2: change the behavior of the read operation with the parameter mode. Is this case, the parameter value was modified to "CRLF". Look the image below.
    I hope this help.
    My regards,
    Vinicius

  • Internet toolkit 6.0.2

    Hi all,
    Where can I find the internet tool kit for LabVIEW 8.6(Internet toolkit 6.0.2)? I searched in NI site. But I cannot able to find it? Could you please help me for finding this?
    I have 2010 toolkit. But no 6.0.2 for 8.6 version of LabVIEW
    Thanks in advance,
    Suresh Kumar.G

    Is the internet tool kit option already available in an evaluation version of labview 2009, i saw one of the discussions which said it cant be downloaded,, plz let me know if it is available??

  • Internet Toolkit 5.0 problems

    I'm starting two use the internet toolkit 5.0. But when i open the examples and use one to send an e-mail, occurs a problem and the vi sends the mail but not the message.
    Can anyone help me with this?
    Regards,
    Jorge

    hello,
    the following KB explains you how to send an email using the internet toolkit:
    Internet Toolkit Troubleshooting Wizard:
    http://www.ni.com/support/labview/toolkits/internet/smtp.htm
    Best regards
    Alexandre D
    NIF

  • LabVIEW Internet Toolkit 6.0f2.zip patch did not work

    I was installing the LabView 8.2 distrubution that came along as my August update package. Since I was loading this on a brand new machine, I went straight to 8.2. According to the information in the package, when I load in the Toolkit Software, I needed to add some patches. I located two patches, one for the Express VI Development Toolkit and one for the Internet Toolkit. The Express VI Development Toolkit patch worked exactly like its documentation said it would. The Internet Toolkit would not run correctly. It gave me this diagnostic: "The LABVIEW Internet Toolkit 6.0f2 patch was unable to update your files. Ensure you have administrator/root privileges ana that none of the files in <LabVIEW dir>\www\cgi-bin or <LabVIEW dir>\vi.llb\addons\internet are set to read-only. Then re-run the patch."
    I have adminsitrator privileges (I've been installing software for two days). I looked at the files in the two directories that they asked about, and there were none at read-only. Help!!
    Thanks!

    Dave,
    I've seen this problem before.  When you unzip the patch files, you must preserve the folder structure included in the ZIP file.  Specifically, it creates some subfolders (Windows, Mac, and Linux, I think) that reside next to the patch LLB.  The patching VI will be looking for specific files in those folders next to the LLB (depending on your operating system)...if you just have all the files from the ZIP next to each other, with no folder structure, the patch VI will error out.  This happened to me more than once, and it was always because I accidentally just dragged all the files out of the ZIP onto my Desktop instead of actually "unzipping" them into the proper folder structure...I believe the readme for the patch mentions this issue.
    Let me know if this suggestion works.  For future patches, I'll probably recommend we either include all patch files in a flat structure, or have some error checking code in the patch VI that checks next to the patch LLB if the expected location is not found.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Telnet program with NI-Layer for SAPRouter

    Hello everybody,
    I want to administrate our SAP WebAS Java Servers via telnet, because it's scripting capable (see https://wwwn.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/s-u/saptelnetscript.article)
    I want to do it via SAPRouter, so I can use the SNC functionality for encryption (telnet passwords won't be transmitted in cleartext).
    I know that the SAP Support has a telnet program that is capable to connect through a SAPRouter. I think it was recompiled with NI-Layer functionality.
    Is there a way to get this telnet program from elsewhere ?
    I have done some tests with the netcat (linux Swiss Army Knife) tool where I have used the description of the connection establishment from the sap.help.com.
    But I could only initiate a NATIVE ROUTING connection without getting a telnet session.
    So I ask you, if someone can help me to solve my problem
    Carsten Promper
    Systems Administrator

    Hi Wahoo,
    I need to write a LabVIEW program ... Thank you very much for any help
    All you wrote between is just the description of your "needs"...
    How can we help, when you don't ask specific questions?
    - When you want to learn LabVIEW: there are online courses available on www.NI.com.
    - You will find a lot of examples in your LabVIEW installation: just look for the "Help" menu...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • When I click on the 'help' key in the elements 12 program it wants to open it in Firefox2. Firefox doesn't work on my Macbook Pro Air. I use Safari. How do I get it to open?

    When I click on the 'help' key in the elements 12 program it wants to open it in Firefox2. Firefox doesn't work on my Macbook Pro Air. I use Safari. How do I get it to open?

    Hmm, that is very strange. I agree with MichelB that it's probably best just to get the PDF, but you can try going to your username>library>preferences and deleting:
    com.adobe.PhotoshopElements.plist
    Adobe Photoshop Elements 12 settings
    Adobe Photoshop Elements 12 paths
    To see the library, click the Go menu in the Finder and hold down the option key and it will appear below the little house for your user account. While you're in there it wouldn't be a bad idea to go to the Saved Application States folder and delete anything pertaining to PSE.
    Repair permissions and see if that does it.

  • Please  Help me How write the BDC program for the MIGO inbound Delivery

    Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
    Not in LSMW.  Required call transaction or Session Method. Please help me.
    Mohan

    Run transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.

  • Where can I get Internet Toolkit for LabVIEw v.5.1

    I would like to start Internet (web-based) application and using labVIEW v.5.1 now. So how can I get Internet Toolkit for that version and where can I get manual for that purpose.

    All NI manuals are available as PDF versions in our Manuals library at http://www.ni.com/manuals
    The latest version of the Internet Developers Toolkit for G Reference Manual is at http://digital.ni.com/manuals.nsf/websearch/EB3302​A150B625AC8625665E00635958?OpenDocument&node=13210​0_US
    Good luck,
    Kelly HolmesLabVIEW Documentation
    Kelly H
    LabVIEW Documentation
    National Instruments

  • Maybe you are looking for

    • How to set an adapted project dashboard view as initial for all users?

      Hi all. We have the cProjects project dashboard active and have defined (via settings, save as) a custom view with the columns relevant in this particular installation.  I can however only save this view with assignment "user" meaning that it only ap

    • One answer to ipod not being recognised in itunes

      My 20gb ipod recently stopped being recognised in itunes but was still recognised in "My Computer". Having tried alot of the suggested solutions (more than once)nothing seemed to correct this. I resigned myself to being one of the many having a "half

    • Re: Missing G/L Account in Sales Order

      Hi all, I have a BOM material configured and now I am creating a Sales Order with the BOM Material in order to trigger the Production of the goods. I have looked in most of the forums and checked that VKOA assignment is there. Even in the Acct Assign

    • RMI Client UnmarshalException with UNC paths

      I have a 'none' Java application, that has an embedded JVM which is being used as an RMI server to allow communication to the application from a browser. The applet detects the presence of the RMI server and if not detected, will start the applicatio

    • Conditions we go for a particular dimension as high cardinlity?

      Hello SAP Gurus, Under which conditions we go for a particular dimension as high cardinlity? Any pratical scenairos you have faced in the project?