Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 9:00 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Reboot Device
PostPosted: Thu Jun 02, 2011 3:55 pm 
Offline

Joined: Wed May 25, 2011 10:49 am
Posts: 8
Is there a way I can reboot the device in iX? We are using a QTERM-A7 if it is device specific.


Top
 Profile  
 
 Post subject: Re: Reboot Device
PostPosted: Mon Jun 06, 2011 1:31 pm 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
You can do a soft reset using script. I verified this script works on a QTERM-A7. I have not verified if it works on other iX Developer panels.

Code:
namespace Neo.ApplicationFramework.Generated
{
    using System.Windows.Forms;
    using System;
    using System.Drawing;
    using Neo.ApplicationFramework.Tools;
    using Neo.ApplicationFramework.Common.Graphics.Logic;
    using Neo.ApplicationFramework.Controls;
    using Neo.ApplicationFramework.Interfaces;
   
   using System.Runtime.InteropServices;   
   
    public partial class Screen1
   {
      [DllImport("coredll.dll", SetLastError=true)]
      static extern int SetSystemPowerState(string psState, int StateFlags, int Options);
            
      const int POWER_STATE_RESET = 0x00800000;
      
      void Button1_Click(System.Object sender, System.EventArgs e)
      {
         SetSystemPowerState(null, POWER_STATE_RESET, 0x0);
      }
    }
}

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject: Re: Reboot Device
PostPosted: Mon Jun 06, 2011 10:13 pm 
Offline

Joined: Wed May 25, 2011 10:49 am
Posts: 8
That works great. Thanks again!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group