20.01.2014 Views

Quickstart manual - ICPDAS-EUROPE

Quickstart manual - ICPDAS-EUROPE

Quickstart manual - ICPDAS-EUROPE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Now please go to the “head” area.<br />

In the “head” area, please modify the sample code to be as below.<br />

// variable to record object's blink state, 0:not blink, 1: blink, For example:<br />

// *********************************<br />

var B12_blink=0; // init as 0:not blink<br />

// *********************************<br />

// function to blink object<br />

var blink_step=0;<br />

function blink_obj()<br />

{<br />

if(blink_step==1)<br />

{<br />

blink_step=0;<br />

// display your object here<br />

// blink B12, For example:<br />

// *********************************<br />

if(B12_blink==1)<br />

{<br />

B12.innerText="Error !" ;<br />

font_B12.color="red";<br />

}<br />

// *********************************<br />

}<br />

else<br />

{<br />

blink_step=1;<br />

// un-display your object here<br />

// blink B12, For example:<br />

// *********************************<br />

if(B12_blink==1)<br />

{<br />

B12.innerText="" ;<br />

font_B12.color="red";<br />

}<br />

// *********************************<br />

}<br />

setTimeout("blink_obj()", blink_period);<br />

}<br />

The “Error !” symbol will blink when the<br />

K2 = True in this example. Please<br />

un-mask the code inside these 3<br />

areas.<br />

4-36 Getting Started : The XPAC-8xx7-CE6 PAC, Ver.1.23 , May 2012 by ICP DAS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!