Results 1 to 3 of 3
  1. #1
    makidoja is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Question Help with sending multiple commands to NETiom

    Hi all

    I'm new to Java but managed to get my remote NETiom board working with the code posted below.

    The problem I have is that the NETiom board will only accept single commands to the HTML server built in.

    What I dould like to do is send the following commands, timed 500ms apart to switch off 4 outputs before initilising 1 of the 4 inputs.

    The commands I need to send are : B01 B02 B03 B04 T01

    These 5 commands switch off relays 1 2 3 4 beofre energising relay 1

    OK the code I'm using currently is as follows which gives me the correct buttons and action upto the point of cancelling any of the first 4 relays before energising one.

    The buttons I would like this action on are NE SE SW NW

    Can anyone think of a solution?

    Maybe the button calls a section of code which will send B01 pause B02 pause B03 pause etc etc

    Mak

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Netiom Inputs</title>
    <STYLE TYPE="text/css">
    <!--
    td{font-family: Arial; font-size: 10pt;}
    --->
    </STYLE>
    </head>
    <body bgColor=#99FFFF FONT ="Arial">
    <font face="Arial"><b>Remote Control Panel</B></font>
    <SCRIPT TYPE="text/javascript">
    function ChangeImage(str){
    if(str=='On')str='<img src="Green.jpg" NAME="StatusImage" border="0" width="25" height="25" alt="">';
    else str='<img src="Red.jpg" NAME="StatusImage" border="0" width="25" height="25" alt="">';
    return(str);
    }
    document.writeln(
    '<form action="status.cgi" method="get">'+
    '<table border="0" align="middle" cellspacing="5" summary="" FONT ="Arial">'+
    ' <tr>'+
    ' <td align="middle" width="300"><FONT ="Arial"><b>40M / 80M FOUR SQUARE</b>'+
    ' </td>'+
    ' <td align="middle" width="100"><b>DIRECTION</b>'+
    ' </td>'+
    ' </tr>'+
    '</table>'+
    '<table border="0" align="middle" cellspacing="5" summary="">'+
    ' <tr>'+
    ' <td align="middle" width="300"><input type=submit name=T09 value="40M 4 SQUARE"></td>'+
    ' <td align="middle"><input type=submit name=T01 value="NW"></td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td align="middle"><input type=submit name=T02 value="NE"></td>'+
    ' </tr>'+
    ' <tr>'+
    ' <td align="middle">'+ChangeImage('%69')+'</td>'+
    ' <td align="middle">'+ChangeImage('%61')+'</td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td align="middle">'+ChangeImage('%62')+'</td>'+
    ' </tr>'+
    ' <tr>'+
    ' <td align="middle">'+ChangeImage('%70')+'</td>'+
    ' <td align="middle">'+ChangeImage('%63')+'</td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td align="middle">'+ChangeImage('%64')+'</td>'+
    ' </tr>'+
    ' <tr>'+
    ' <td align="middle"><input type=submit name=T10 value="80M 4 SQUARE"></td>'+
    ' <td align="middle"><input type=submit name=T03 value="SW"></td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td></td>'+
    ' <td align="middle"><input type=submit name=T04 value="SE"></td>'+
    '</table>'+
    '<table border="0" align="middle" cellspacing="5" summary="">'+
    ' <tr>'+
    ' <td align="middle" width="300"><b>ANTENNA SWITCH</b>'+
    ' </td>'+
    ' </tr>'+
    '</table>'+
    '<table border="0" align="middle" cellspacing="5" summary="">'+
    ' <tr>'+
    ' <td align="middle"><b><input type=submit name=T05 value="Vertical"></b></td>'+
    ' <td align="middle"><input type=submit name=T08 value="Beam"></td>'+
    ' <td align="middle"><input type=submit name=T06 value="Windom"></td>'+
    ' <td align="middle"><input type=submit name=T11 value="Doublet"></td>'+
    ' <td align="middle"><input type=submit name=T07 value="Dummy Load"></td>'+
    ' </tr>'+
    ' <tr>'+
    ' <td align="middle">'+ChangeImage('%65')+'</td>'+
    ' <td align="middle">'+ChangeImage('%68')+'</td>'+
    ' <td align="middle">'+ChangeImage('%66')+'</td>'+
    ' <td align="middle">'+ChangeImage('%71')+'</td>'+
    ' <td align="middle">'+ChangeImage('%67')+'</td>'+
    ' </tr>'+
    '</table>'+
    '<table border="0" align="middle" cellspacing="5" summary="">'+
    ' <tr>'+
    ' <td align="middle" width="300"><b>Auxillary Switches</b>'+
    ' </td>'+
    ' </tr>'+
    '</table>'+
    '<table border="0" align="middle" cellspacing="5" summary="">'+
    ' <tr>'+
    ' <td align="middle"><b><input type=submit name=T13 value="Acom 2000"></b></td>'+
    ' <td align="middle"><input type=submit name=T15 value="Rotator CCW"></td>'+
    ' <td align="middle"><input type=submit name=T16 value="Rotator CW"></td>'+
    ' <td align="middle"><input type=submit name=T14 value="Spare"></td>'+
    ' <tr>'+
    ' <td align="middle">'+ChangeImage('%73')+'</td>'+
    ' <td align="middle">'+ChangeImage('%75')+'</td>'+
    ' <td align="middle">'+ChangeImage('%76')+'</td>'+
    ' <td align="middle">'+ChangeImage('%74')+'</td>'+
    ' </tr>'+
    '</table>'+
    '<br></br>'+
    '<table border="0" align="middle" cellspacing="20" summary="">'+
    ' <tr>'+
    ' <td><align="middle"><input type=submit name=T12 value="Reboot PC"></td>'+
    ' </tr>'+
    '</table>'+
    '</form>');
    </SCRIPT>
    <form action="status.cgi" method="get">
    <input type=submit value="Refresh">
    </form>
    </body>
    </html>

  2. #2
    makidoja is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default Anyone?

    Hi again

    Anyone have any tips or am I barking up the wrong tree?

    Mak

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    Sorry, I don't know anything about NETiom. But the code you posted is html/javascript whereas this forum is for Java (a different language) so maybe you are in the wrong place.

Similar Threads

  1. Commands on java.
    By Slithice in forum New To Java
    Replies: 15
    Last Post: 11-15-2012, 11:06 AM
  2. At commands in java
    By strictlydivine.elite in forum Advanced Java
    Replies: 1
    Last Post: 11-22-2010, 10:55 AM
  3. CMD is not reading commands
    By colonial in forum Forum Lobby
    Replies: 1
    Last Post: 03-15-2010, 03:36 AM
  4. j2ssh to run multiple commands
    By idan hen in forum Networking
    Replies: 4
    Last Post: 10-18-2009, 09:21 PM
  5. Sending commands to Serial Port(COM1)
    By ali_sakar in forum Advanced Java
    Replies: 19
    Last Post: 10-02-2009, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •