Update problem UI while ICB running callback functions

Hello

I have a simple code CVI that aims to blink a LED on the Panel for some time when the user double clicks on a button in the Panel (right). The CVI code is as below.

#include
#include
#include
#include
#include «run Fn.h reminder»
#include

public static int panelHandle;
int i = 0;

int main (int argc, char * argv [])
{
If (InitCVIRTE (0, argv, 0) == 0)
Returns - 1; / * memory * /.
If ((panelHandle = LoadPanel (0, "Run rappel Fn.uir", PANNEAU)))<>
Returns - 1;
DisplayPanel (panelHandle);
RunUserInterface ();
DiscardPanel (panelHandle);
}

int CVICALLBACK (int, int int event control panel Run,
void * callbackData, int eventData1, int eventData2)
{int i = 0;
switch (event)
{
case EVENT_RIGHT_DOUBLE_CLICK:
printf ("detected event");
SetCtrlVal (panelHandle, PANEL_NUMERIC, 23.78);
SetCtrlVal(panelHandle,PANEL_LED,1);
for (i = 0; i<>
{
SetCtrlVal(panelHandle,PANEL_LED,0);
Delay (1);
SetCtrlVal(panelHandle,PANEL_LED,1);
}
break;
}
return 0;
}

But is does not work as expected. The State of the led façade is updated that once the switch housing ends its execution. He did update in the for the loop runs. As a beginner, I have no much idea about the programming of the CVI. However, I found the following information.

http://zone.NI.com/reference/en-XX/help/370051V-01/CVI/uiref/cviprocessing_events/

http://zone.NI.com/reference/en-XX/help/370051V-01/CVI/uiref/cviprocessdrawevents/

But I don't know how to use them.

Any help is appreciated.

Best regards

Dembélé Jacob

Actually you need not order you found since SetCtrlVal already have an update of the user interface: simply give the State ONE time for the user to see.

for (i = 0; i<=100;i++)>
SetCtrlVal (panelHandle, PANEL_LED, 0);
Delay (0.5);
SetCtrlVal (panelHandle, PANEL_LED, 1);
Delay (0.5);
}

A vision a bit in these commands, you found:

ProcessDrawEvents () will force an update of the user interface, but like I told you this is already implicit in SetCtrlVal, at least for the addressed control. You need to use this command if other tasks in the application would update the values displayed on the screen.

ProcessSystemEvents () allows the program to honor even user interface events inside a tight like yours: at the present time, there is no way to stop the process until the for loop ends because even if the user has pressed a button to shut down the system would not see this event inside the loop: ProcessSystemEvents () would allow it.

Tags: NI Software

Similar Questions

  • problem in Clob string running in function

    Hello

    Here is the procedure written to the clob input string.
    create or replace FUNCTION Split
    (
    iv_String IN CLOB,
    v_Delimiter IN VARCHAR2
    )
    RETURN sys_refcursor
    AS
    v_length NUMBER:= LENGTH(iv_String);
    v_start NUMBER(10,0):=1;
    V_temp2 NUMBER(10,0):=0;
    v_index NUMBER;
    v_temp SYS_REFCURSOR;
    BEGIN
    WHILE(v_start <= v_length)
    LOOP
    BEGIN
    v_index:= INSTR(iv_String, v_delimiter, v_start);
    IF v_index = 0 THEN
    V_temp2:=V_temp2+1;
    INSERT INTO tt_v_SplittedValues
    VALUES (V_temp2 ,SUBSTR(iv_String, v_start) );
    v_start := v_length + 1;
    ELSE
    V_temp2:=V_temp2+1;
    INSERT INTO tt_v_SplittedValues
    VALUES (V_temp2 ,SUBSTR(iv_String, v_start, v_index - v_start) );
    v_start := v_index + 1;
    END IF;
    END;
    END LOOP;
    OPEN v_temp FOR
    SELECT * FROM tt_v_SplittedValues;
    return v_temp;
    
    
    END Split;
    Function has been created successfully
    sql> variable x sys_refcursor
    sql>exec :x:=split('asdf|dsdsd|fdfdf|kkhh','|');
    sql> print :x
    
    
    Output
    1 asdf
    2 dsdsd
    3 fdfdf
    4 kkhh
    His giving the expected results when the chain is small.

    When executing a long string, I am met with an error message
    sql> variable x sys_refcursor
    sql>exec :x:=split('1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.
    2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPo
    int$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$';
    ,'|');
    
    
    I am getting an below error
    
    errror:SP2-0027: Input is too long (> 2499 characters) - line ignored
    Any help really appreciated

    Why not use the pipeline feature?

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    Elapsed: 00:00:00.01
    satyaki>
    
    satyaki>create or replace type clob_obj as object
      (
        buff  clob
      );
    
    Elapsed: 00:00:00.97
    
    satyaki>create or replace clob_rec as table of clob_obj;
    Elapsed: 00:00:00.97
    
    satyaki>
    satyaki>create or replace FUNCTION Split(
      2                                       p_string IN clob,
      3                                       p_delimiter IN VARCHAR2 default ','
      4                                     )
      5  return clob_rec
      6  pipelined
      7  is
      8    v_length NUMBER := LENGTH(p_string);
      9    v_start NUMBER := 1;
     10    v_index NUMBER;
     11  begin
     12   WHILE(v_start <= v_length)
     13   LOOP
     14     v_index := INSTR(p_string, p_delimiter, v_start);
     15
     16      IF v_index = 0 THEN
     17        PIPE ROW(c_l_o_b_obj(SUBSTR(p_string, v_start)));
     18        v_start := v_length + 1;
     19      ELSE
     20        PIPE ROW(c_l_o_b_obj(SUBSTR(p_string, v_start, v_index - v_start)));
     21        v_start := v_index + 1;
     22      END IF;
     23    END LOOP;
     24   return;
     25  end Split;
     26  /
    
    Function created.
    
    Elapsed: 00:00:00.51
    satyaki>
    satyaki>select * from table(cast(Split('asdf|dsdsd|fdfdf|kkhh','|') as clob_rec));
    
    BUFF
    --------------------------------------------------------------------------------
    asdf
    dsdsd
    fdfdf
    kkhh
    
    Elapsed: 00:00:00.97
    satyaki>
      1  select * from table(cast(Split('1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$|2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$|1$2$-1$-50$70$Yes$$3$$|2$2$-1$50$70$No$$4$$|3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$|1$3$-1$-50$70$Yes$$4$$|2$3$-1$50$70$No$$4$$|4$-1$594$341$ExitPoint1$ExitPoint$3.2,
      2* as clob_rec))
    satyaki>/
    
    BUFF
    --------------------------------------------------------------------------------
    1$-1$489$53$ProcessTest$Title$$2$$$$$$$$$$
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    1$3$-1$-50$70$Yes$$4$$
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    
    BUFF
    --------------------------------------------------------------------------------
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    1$3$-1$-50$70$Yes$$4$$
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    1$3$-1$-50$70$Yes$$4$$
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    
    BUFF
    --------------------------------------------------------------------------------
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    1$3$-1$-50$70$Yes$$4$$
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    
    BUFF
    --------------------------------------------------------------------------------
    1$3$-1$-50$70$Yes$$4$$
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    1$3$-1$-50$70$Yes$$4$$
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    
    BUFF
    --------------------------------------------------------------------------------
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    1$3$-1$-50$70$Yes$$4$$
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    2$2$-1$50$70$No$$4$$
    3$-1$440$233$Question2$Question$2.1$3.2,3.1$$$$$$$$$$
    1$3$-1$-50$70$Yes$$4$$
    
    BUFF
    --------------------------------------------------------------------------------
    2$3$-1$50$70$No$$4$$
    4$-1$594$341$ExitPoint1$ExitPoint$3.2,3.1,2.2$$$$$$$$$1$$1$-1$489$53$ProcessTest
    2$-1$490$133$Quesion1$Question$1$2.2,2.1$$$$$$$$$$
    1$2$-1$-50$70$Yes$$3$$
    
    59 rows selected.
    
    Elapsed: 00:00:01.06
    satyaki>
    

    But he may have limits, too.

    Kind regards.

    LOULOU.

  • How can we enter and update digital panel forward when a young while loop runs?

    Hi all

    In my code, I have a while loop making quick gripping (sampling)

    How can I update other digital controls in the front panel when the while loop runs?

    right now, once I have enter a number in this digital control, the computer seems to be no answer to the elbow. Looks like the computer focuses on the while loop.

    any ideas are appreciated.

    Thank you

    Jack


  • How to run progamatically of callback functions

    Title says it all.

    I want to execute a callback to a command by programming button. How is that possible?

    Hello

    It's pretty simple: you call the callback function...

    For example, if it is defined as an int CVICALLBACK QuitCallback (int command face, int, int event, void * callbackData, int eventData1, int eventData2)

    You can call the function as QuitCallback (Panel, control, event, callbackData, eventData1, eventData2), where you will need to use the appropriate panel and control the ID. For the event, you can provide the type of event you want to simulate, for example EVENT_COMMIT. If you do not need a callbackData, eventData1, eventData2, you can specify zero. In summary:

    QuitCallback (panel_ID, control_ID, EVENT_COMMIT, 0, 0, 0);

    Wolfgang

  • CALLBACK functions in cvi

    Hello

    Need a simple clarification on the use of the callback function.

    I have 3 function keys different as reminder starting test, brake test, quit smoking.

    Whenever the start test button is pressed by EVENT_COMMIT, he asked some functions and performs the same. in the middle of the execution of this function, I need to stop the test by pressing the stop test button or I leave the interface. How can I do this?

    I am facing problem like once I press the Start button, that I get another button controls until all the functions available on the inside button start is filled.

    Thanks in advance

    Sleep (1000) and not to call ProcessSystemEvents () are the reasons!

    1. Sleep () completely blocks the program until the time has expired. It is recommended that you don't call him for long intervals!
    2. If you do not (ProcessSystemEvents) you cannot have a stop button

    Try to change the code this way:

    int requestToStop;    This set at the module level

    int CVICALLBACK Btn_Start_Test (int, int int event, control panel,
    void * callbackData, int eventData1, int eventData2)
    {

    switch (event) {}
    case EVENT_COMMIT:

    requestToStop = 0;    Clear the flag to stop and start the test
    If (Tree_getselectedChilditems())

    MessagePopup ('Info', 'operator stopped the test!');

    on the other
    MessagePopup ("Info", "TEST COMPLETED successfully");
    break;
    }
    return 0;
    }

    int btn_stop_test (int, int int event control panel CVICALLBACK,
    void * callbackData, int eventData1, int eventData2)
    {
    switch (event) {}
    case EVENT_COMMIT:
    requestToStop = 1;
    XL_KillWindowsProcess ("EXCEL." EXE"); not exactly excel file, it can be any file that is currently running
    break;
    }
    return 0;
    }

    int Tree_getselectedChilditems (void) //double testcaseno)
    {
    int noOfItems; int val, I have;  int index;
    int noOfChild, index = 1;
    char treelabel [500] = {0};
    char charval; char TCno [100];
    Select int;  char testno [100] = {0};

    tini double;

    for (error = GetTreeItem (panelHandle, PANEL_TREE, VAL_CHILD, 0, VAL_FIRST, VAL_NEXT_PLUS_SELF, VAL_MARKED, &index);))
    index > = 0 & error<=0;error =="" gettreeitem(panelhandle,="" panel_tree,="" val_all,="">
    (index, VAL_NEXT, VAL_MARKED, & index))
    {
    GetTreeCellAttribute (panelHandle, PANEL_TREE,
    index: 0, ATTR_LABEL_TEXT, treelabel);
      
    Scan (treelabel, "%s", TCno);
    strcpy (testcaseno, TCno);
      
           
    Sleep (1000);     Replace this line with the following code
    tini = Timer ();
    While (timer() - tini)< 1.0)="">

    ProcessSystemEvents ();

    If the breach (RequestToStop);     The operator are

    }
      
    readTestcasesheet (ExcelWorkbookHandle, ExcelWorksheetHandle, testcaseno);
    Fmt(treelabel,"%s","");

    If the breach (RequestToStop);     Judgment of the operator
    }
     
     
    Return requestToStop;
    }

  • Java update problem

    update of Java while trying to install a java update the followin message problem, cannot start the installer from the java (TM) update the requested operation requires a rise.

    Hi all

    You can see this information on Java user account control.
    http://www.Java.com/en/download/FAQ/UAC.XML

    But to answer some questions, even if logged in with an administrator account, Windows Vista and Windows 7 require a high privilege to install some things. It is the function of (UAC) user account control. Usually you would right click on the .exe for example setup.exe or Setup.msi file. If you're in a command prompt, then right click on cmd.exe and select "Run as administrator.".

    You can temporarily disable UAC and install Java. Re-enable UAC, then see if it helps to get installed it.

    Thank you

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • p6310f: Windows Update problem

    When you try to upgrade to windows 10 I received the error message 0 x 80080005 - 0 x 90016 after watching in Microsoft support forum, I found that the problem was related to windows 7 is not not to date. I checked and found that my computer has stopped udating a couple of years. I tried to run Fixit MS that has not worked. Tried to reboot (BITS) and got ERROR 126 (module not found) I then followed the instructions at https://support.microsoft.com/en-us/kb/2700567 on how to reset the Windows Update components. During the process, I have the following errors:

    Mshtml.DLL loaded, but the dllregisterserver entry point was not found.

    Shdocvw.dll "" ""

    browseui.dll   "                "                    "                     "

    MSXML.dll Module could not load make sure that binary is stored at the specified location the specified module could not be found.

    Actprxy.dll Failed is not found

    gpkcsp.dll        "        "           "             "

    initpki.dll          "           "                 "

    wuaueng1.dll"" "

    c:\windows\system32\dllcache\wucltui.dll"" "

    wuweb.dll      "            "           "              "

    muweb.dll    "            "              "            "

    I guess my question is what I have to do a restore of the system under windows 7, before I can upgrade to windows 10? Or y at - it another way?

    Hello glockrow ;

    Let me welcome you on the HP forums!

    I read your post about windows update problems and wanted to help.

    I would that be able to say that updating to Win10 was an exact science where we know exactly how he does it, and what it should - but the flooding of this and other instances of Win10 problem after that problem indicates that, at best, we are all guessing.

    So, I think, from what I've read and done on my PC, is that you SHOULD be able to avoid the problem of missing updates by updating using Win10 created using this MS link media: 10 Windows Installer using the media - Windows help authoring tool

    After you create the DVD or USB, NOT boot from it. Instead, insert it into your PC and, if it does not auto-start, right click on the file setup.exe and run it.

    HOWEVER - and this is important - PC Win7 have a rate low success updated Win10 without problem - primariluy lack of OEM Win10 drivers.  Typical problems include display artifacts (to cause to be obliged to use the driver for the card of Microsoft Basic), not wireless and touchpad problems.  The drivers Microsoft provides have only the most basic features, with none of the extras that the HP drivers bring to the stage.

    It is further complicated by the function Win10 GoBack, whereby you can return to your original operating system, being known to be unreliable. So when your upgrade machine malfunctioning, only then you discover that you cannot return the machine to work, that you had originally!

    You can protect yourself against ending up with a damaged machine - seriously considering using a free third-party product that works for airport Imaging/restoration - Macrium Reflect.

    Macrium reflect (MR) provides a FREE version that can be used to image and restore partitions or drives together.

    What I recommend is the following:
    (1) download and install Macrium reflect (MR)
    (2) run M. and choose the option: "Create an image of the partition (s) required to backup and restore Windows" to write a full backup to an external drive or USB key
    (3) use the option to create a CD or a USB startup key

    NOW, you have the means to restore a full system that works for the external hard drive or USB key in a few minutes.

    So now you can recharge before with the upgrade, knowing that whatever happens, you will be able to return to your currently works in a few minutes.

    Good luck

    I'm a volunteer and I do not work for, or represent, HP.
    ========================================================================
    If you feel that my suggestions helped you, please click on the thumbs-up symbol to say thank you!

    If they helped to solve your problem, please click 'Accept as Solution' to help others find similar information.

  • leak memory with the callback function

    Hello

    I'm pretty new on LabWindows and library ninety, I worked mainly with LabVIEW.

    I am trying to create a basic c++ client (no GUI) that sets up subscriptions to several network publication of a PXI DAQ data variables.

    The data for each variable is sent in a cluster and contains different types of data with a 2D array large int16 for the acquired data (average size of array is 100 k in total, and the average time between the data being sent is 10ms). I have an average of 10 of these variables DAQ.

    I'm passing the same callback function as an argument to all of these subscriptions (CNVCreateSubcription).

    He reads all the correct data, but I have a problem is that I have a memory leak in the callback function in the CNVCreateSubscription.

    I have reduced the line of code one and found the function that actually causes the memory leak, it's a CNVGetStructFields(). At this point in the program data has not yet been adopted for the variables of the customers.

    It is a simplified version of the callback function, where I just unzip the cluster and get data (showing only a field in the cluster in the example, showing also doesn't not the decleration).

    The function is passed in the function to subscribe, as follows:

    public static void CNVCALLBACK SubscriberCallback(void * handle, CNVData data, void * callbackData);

    CNVCreateSubscriber (url.c_str (), SubscriberCallback, NULL, 0, CNVWaitForever, 0, & Subscriber);

    public static void CNVCALLBACK SubscriberCallback(void * handle, CNVData data, void * callbackData)
    {

    int16_t daqValue [100000];

    unsigned long int nDims;
    unsigned long int daqDims [2];
    CNVData fields [1];
    Type CNVDataType;
    unsigned short int numFields;

    CNVGetDataType (data, & type, &nDims);)
    CNVGetNumberOfStructFields (data, & numFields);
    CNVGetStructFields (data, fields, numFields); //<-------HERE is="" the="" problem,="" i="" can="" comment="" out="" the="" code="" after="" this="" point="" and="" it="" still="" causes="" a="" memory="">

    CNVGetDataType (fields [0], & type, &nDims);)

    CNVGetArrayDataDimensions (fields [0], nDims, acqDims);
    CNVGetArrayDataValue (fields [0], type, daqValue, daqDims [0] * daqDims [1]);

    CNVDisposeData (data);

    The average settings, I use all my memory systems (4 GB) in time.

    My question is, all else have experienced this and what might be the problem/solution to this?

    Thank you.

    I see that you disable only handle memory (data), but not the memory of the structure; Therefore, before calling CNVDispose (data) you should have something like

    While (numFields > 0)
    CNVDisposeData (fields [-numFields]);

  • Vista SP1 does not update problems and System Restore returns a message "system restore was not entirely successful. File system and the setting of your computer has not changed"with the error code (0x80071AA7)

    0rignal title: Vista SP1 didn't update problem

    So, recently, I was on my computer of gf and noticed she had some updates, it could use his computer which included the SP1 update.  So I went through the process trying to update his computer and he has been a disaster and have had many problems and seems to have tried everything.  It has a Dell inspiron 1525 and has no CD and no key for its program of Vista.  I burned a Vista recovery disk and tried troubleshooting by using that, but have not had much luck.  When I use the Startup Repair tool there is no nothing.  So I tried to use the restore of the system with the Description of "install: Windows Vista Service Pack 1.  He had a restore point saved just before I tried to update to SP1.  Whenever I chose this method, it's but the whole process then in the end it says:

    "System restore was not entirely successful.  File system and the setting of your computer have not changed. "

    then he begins to list the details with the error code (0x80071AA7) and then gives me the option to close or 'Run System Restore"once again that is an endless loop, because I just end up with the same error each time.  If anyone has had this problem and bring myself through it.  I don't want to reinstall windows because it seems simply ridiculous and plus that she a lot of pictures on his computer and I want to get rid of those.

    If you need more information please let me know and evil provides everything I can

    Hello
     
    Follow the steps and check if the problem persists.
     
    Step 1:
     
    I suspect that your security program may be responsible for this. I would suggest you temporarily disable all security software and try the system restore.
     
    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-Firewall-on-or-off
     
    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software
     
    Note : Antivirus software can help protect your computer against viruses and other security threats.  In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
     
    Step 2:
     
    As for installing updates is concerned, I you should install them after you put your computer in aclean boot State. There could be a third-party software in conflict with updates. Clean boot helps eliminate these conflicts.
     
    Note: Restart your machine as usual by following step 7.
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Check if the layer is visible and run a function according to the answer

    Hey guys,.

    I have a question that has been racking my brain these days.

    If I want to run a script when I press a button that will check if a specific layer is visible. If so, it performs another function that shows additional layers. If the specific layer is not visible, it checks the next layer to see if it is visible. This continues until it checks all the necessary layers and is a visible layer.

    Here's the script in question:

    #target photoshop

    //

    clthTopTt.jsx

    //

    cTID = function (s) {return app.charIDToTypeID (s) ;};}

    sTID = function (s) {return app.stringIDToTypeID (s) ;};}

    //

    //==================== actnStd ==============

    //

    function checkactnStd() {}

    Select

    function step 1 (enabled, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "actnStd");

    DESC1.putReference (cTID ('null'), ref1);

    DESC1.putBoolean (cTID ('MkVs'), false);

    var list1 = new ActionList();

    List1.putInteger (17011);

    DESC1.putList (list1, cTID ('LyrI'));

    executeAction (desc1 cTID ('slct'), dialogMode);

    };

    If

    step2 function (activated, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    DESC1.putEnumerated (cTID ('null'), ('Cndt') cTID, cTID ('Ahsvs'));

    var ref1 = new ActionReference();

    Ref1.putName (cTID ('Actn'), 'select actnStd');     <-if the actnStd layer is visible, rather than performing this action, it runs the function selectactnStd().

    Ref1.putName (cTID ('ASet'), 'clthTopTt');

    DESC1.putReference (cTID ('then'), ref1);

    ref2 var = new ActionReference();

    ref2.putName (cTID ('Actn'), "check actnWlk");  <-if the actnStd layer is NOT visible, it executes the next layer checks (via the function checkactnWlk(). )

    ref2.putName (cTID ('ASet'), 'clthTopTt');

    DESC1.putReference (cTID ('else'), ref2);

    executeAction (desc1 sTID ('conditional'), dialogMode);

    };

    Step1();      Select

    Step2();      If

    };

    function selectactnStd() {}

    Show

    function step 1 (enabled, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "topStdTt");

    Ref1.putName (cTID ("'Lyr"), "topMskStd");

    List1.putReference (Ref1);

    DESC1.putList (list1, cTID ('null'));

    executeAction (cTID ("'Shw"), desc1, dialogMode);

    };

    Hide

    step2 function (activated, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "topWlkTt");

    Ref1.putName (cTID ("'Lyr"), "topMskWlk");

    Ref1.putName (cTID ("'Lyr"), "topRunTt");

    Ref1.putName (cTID ("'Lyr"), "topMskRun");

    List1.putReference (Ref1);

    DESC1.putList (list1, cTID ('null'));

    executeAction (desc1 cTID ("Hd"), dialogMode);

    };

    Step1();      Show

    Step2();      Hide

    };

    //

    //==================== actnWlk ==============

    //

    function checkactnWlk() {}

    Select

    function step 1 (enabled, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "actnWlk");

    DESC1.putReference (cTID ('null'), ref1);

    DESC1.putBoolean (cTID ('MkVs'), false);

    var list1 = new ActionList();

    List1.putInteger (17012);

    DESC1.putList (list1, cTID ('LyrI'));

    executeAction (desc1 cTID ('slct'), dialogMode);

    };

    If

    step2 function (activated, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    DESC1.putEnumerated (cTID ('null'), ('Cndt') cTID, cTID ('Ahsvs'));

    var ref1 = new ActionReference();

    Ref1.putName (cTID ('Actn'), 'select actnWlk');

    Ref1.putName (cTID ('ASet'), 'clthTopTt');

    DESC1.putReference (cTID ('then'), ref1);

    ref2 var = new ActionReference();

    ref2.putName (cTID ('Actn'), "check actnRun");

    ref2.putName (cTID ('ASet'), 'clthTopTt');

    DESC1.putReference (cTID ('else'), ref2);

    executeAction (desc1 sTID ('conditional'), dialogMode);

    };

    Step1();      Select

    Step2();      If

    };

    function selectactnWlk() {}

    Show

    function step 1 (enabled, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "topWlkTt");

    Ref1.putName (cTID ("'Lyr"), "topMskWlk");

    List1.putReference (Ref1);

    DESC1.putList (list1, cTID ('null'));

    executeAction (cTID ("'Shw"), desc1, dialogMode);

    };

    Hide

    step2 function (activated, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "topStdTt");

    Ref1.putName (cTID ("'Lyr"), "topMskStd");

    Ref1.putName (cTID ("'Lyr"), "topRunTt");

    Ref1.putName (cTID ("'Lyr"), "topMskRun");

    List1.putReference (Ref1);

    DESC1.putList (list1, cTID ('null'));

    executeAction (desc1 cTID ("Hd"), dialogMode);

    };

    Step1();      Show

    Step2();      Hide

    };

    //

    //==================== actnRun ==============

    //

    function checkactnRun() {}

    Select

    function step 1 (enabled, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "actnRun");

    DESC1.putReference (cTID ('null'), ref1);

    DESC1.putBoolean (cTID ('MkVs'), false);

    var list1 = new ActionList();

    List1.putInteger (17013);

    DESC1.putList (list1, cTID ('LyrI'));

    executeAction (desc1 cTID ('slct'), dialogMode);

    };

    If

    step2 function (activated, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    DESC1.putEnumerated (cTID ('null'), ('Cndt') cTID, cTID ('Ahsvs'));

    var ref1 = new ActionReference();

    Ref1.putName (cTID ('Actn'), 'select actnRun');

    Ref1.putName (cTID ('ASet'), 'clthTopTt');

    DESC1.putReference (cTID ('then'), ref1);

    ref2 var = new ActionReference();

    ref2.putName (cTID ('Actn'), "check actnAc");

    ref2.putName (cTID ('ASet'), 'clthTopTt');

    DESC1.putReference (cTID ('else'), ref2);

    executeAction (desc1 sTID ('conditional'), dialogMode);

    };

    Step1();      Select

    Step2();      If

    };

    function selectactnRun() {}

    Show

    function step 1 (enabled, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "topRunTt");

    Ref1.putName (cTID ("'Lyr"), "topMskRun");

    List1.putReference (Ref1);

    DESC1.putList (list1, cTID ('null'));

    executeAction (cTID ("'Shw"), desc1, dialogMode);

    };

    Hide

    step2 function (activated, withDialog) {}

    If (enabled! = undefined & &! activated)

    return;

    var dialogMode = (withDialog? DialogModes.ALL: DialogModes.NO);

    var desc1 = new ActionDescriptor();

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putName (cTID ("'Lyr"), "topStdTt");

    Ref1.putName (cTID ("'Lyr"), "topMskStd");

    Ref1.putName (cTID ("'Lyr"), "topWlkTt");

    Ref1.putName (cTID ("'Lyr"), "topMskWlk");

    List1.putReference (Ref1);

    DESC1.putList (list1, cTID ('null'));

    executeAction (desc1 cTID ("Hd"), dialogMode);

    };

    Step1();      Show

    Step2();      Hide

    };

    After he checks the last layer, then end the script.

    'clthTopTtLoop.jsx '.

    EXPRESSIONS OF FOLKLORE

    Any help is appreciated seriously. Thank you guys!

    Hey guys, I promised that I would update this post to help others if I got the answer, so here:

    Firstly, the developer has created a function to automatically get the layer. I had problems to find ways to select layers, especially because the layers were nested in groups inside groups. This helped solve that. The function was this:

    function selectLayer(name) {
      var desc = new ActionDescriptor();
      var ref = new ActionReference();
      ref.putName( charIDToTypeID('Lyr '), name );
      desc.putReference( charIDToTypeID('null'), ref );
      desc.putBoolean( charIDToTypeID('MkVs'), false );
      executeAction( charIDToTypeID('slct'), desc, DialogModes.NO );
      return
    };
    

    Then call the layer using layer real name (assuming that your layer names are unique. If they aren't, you'll find yourself only to select the first layer with the same specific name) throughout your script file.

    IE. In my case, selectLayer ("actnStd"); or selectLayer ("actnWlk");

    You then set the visibility by using the following code:

    // show
    app.activeDocument.activeLayer.visible = true;
    // hide
    app.activeDocument.activeLayer.visible = false;
    

    Then use a function to check whether a layer is visible. If the layer is visible, you run the function show/hide layers respective:

    function CheckactnWlk() {
      selectLayer("actnWlk");
      if  (app.activeDocument.activeLayer.visible == true) {
      SelectactnWlk()
      }
      else  {
      CheckactnRun();
      }
    };
    

    So in the end, the final script looks like this:

    #target photoshop
    
    app.bringToFront();
    CheckactnStd();
    
    function CheckactnStd() {
      selectLayer("actnStd");
      if  (app.activeDocument.activeLayer.visible == true) {
      SelectactnStd()
      }
      else  {
      CheckactnWlk();
      }
    };
    
    function SelectactnStd() {
      selectLayer("topMskStd");
      app.activeDocument.activeLayer.visible = true;
    
      selectLayer("topStdTt");
      app.activeDocument.activeLayer.visible = true;
    
      selectLayer("topWlkTt");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topMskWlk");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topRunTt");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topMskRun");
      app.activeDocument.activeLayer.visible = false;
    }; 
    
    function CheckactnWlk() {
      selectLayer("actnWlk");
      if  (app.activeDocument.activeLayer.visible == true) {
      SelectactnWlk()
      }
      else  {
      CheckactnRun();
      }
    };   
    
    function SelectactnWlk() {
      selectLayer("topMskStd");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topStdTt");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topWlkTt");
      app.activeDocument.activeLayer.visible = true;
    
      selectLayer("topMskWlk");
      app.activeDocument.activeLayer.visible = true;
    
      selectLayer("topRunTt");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topMskRun");
      app.activeDocument.activeLayer.visible = false;
    
    };
    
    function CheckactnRun() {
      selectLayer("actnRun");
      if  (app.activeDocument.activeLayer.visible == true) {
      SelectactnRun()
      }
      else  {
      alert ('There is no Selected Layer', 'Please select a layer', 0);
      }
    };
    
    function SelectactnRun() {
      selectLayer("topMskStd");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topStdTt");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topWlkTt");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topMskWlk");
      app.activeDocument.activeLayer.visible = false;
    
      selectLayer("topRunTt");
      app.activeDocument.activeLayer.visible = true;
    
      selectLayer("topMskRun");
      app.activeDocument.activeLayer.visible = true;
    
    };
    
    function selectLayer(name) {
            var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putName( charIDToTypeID('Lyr '), name );
           desc.putReference( charIDToTypeID('null'), ref );
           desc.putBoolean( charIDToTypeID('MkVs'), false );
           executeAction( charIDToTypeID('slct'), desc, DialogModes.NO );
           return
    };
    
    app.preferences.rulerUnits = rUnit;
    app.preferences.typeUnits = tUnit;
    
    selectLayer("actnStd");
    

    Guys good luck! Now to find how to select random layers via the script.

  • Satellite A210 - heating and BIOS update problem

    My aunt was having problems with his A210, so she bought herself a new and gave me the old one. The problems that she has been seen was the computer kept stopping at random. I think it's an overheating problem because the laptop runs quite hot. The BIOS has never been updated so I thought that might help with this problem. in any case, when I tried to update the BIOS this error message came.

    Cannot load the C:\Users\Dan\Desktop\MK10AWF\PHLASHNT driver. SYS.
    Please verify that your accounts, if you have no administrator privileges, please sign in again!
    Access is denied.
    Error code: 5

    I am the only user on the computer so I have administrator privileges and I don't know why this error is coming. Help, please. Thank you

    > Has anyone else experienced problems with the A210 of overheating? All solutions?
    Hi mate

    I m a Satellite A210 owner and to be honest, a higher internal temperature might occur if the laptop would not get enough air to cool the internal parts like CPU and GPU.
    A few weeks ago, I used the laptop on the sofa I don't the opinion of t that the cooling that are placed at the bottom of the unit fans were clogged because of my position relax, if you know what I mean ;)

    After a short period of use, the laptop shut down automatically I was a little surprised, but I realized that air could not circulate, and so the laptop overheated

    Now, I m using the unit only on the desktop. This method is recommended, and it helps to keep the temperature at the lower level

    PS: My BIOS is updated...

  • Satellite L650 - 11Z - Windows update problem 800706BE/800706BA

    Hey,.

    I have problems with the automatic update on windows 7 64 bit. I bought this laptop (Toshiba Satellite L650 - 11Z) last July.

    When the computer begins to do the automatic update, there a while and reports the problems mentioned in the subject.

    I tried to find help for Windows support, but there is a statement, that if windows is installed in the laptop before buying it, I should consult the producer of the computer.

    Matias

    Hello

    I found this info on the 800706BE error:
    + Error 800706BA is a standard Windows error with many causes. It more often refers to Microsoft COM Internet Services (CIS) on the call of client DCOM Distributed Component Object Model (RPC_S_SERVER_UNAVAILABLE); the RPC server is unavailable (Windows Event ID) 1722. That's when a RPC request expires and 800706BA error results. +

    I found this here:
    http://www.Symantec.com/business/support/index?page=content&ID=TECH54543

    Here are also a few details and proposals for solution of Microsoft:
    http://Windows.Microsoft.com/en-in/Windows7/Windows-Update-error-8024000B
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Update-Error-80070002

    Hope this helps

  • LOOP WHILE vi main vi is not responding while void runs

    I have main VI which includes the structure of the event. When START button, I start data capture which is in WHILE loop. I want to CANCEL data entry. The ABORT button is on hand VI. But main VI is unresponsive when void VI while loop runs. How to STOP data acquisition? I can't change the structure.

    Thanks for the reply. I solved the problem. I had made a mistake. I have the structure of the event and the occurrence is common for the control 4 value change event. I had unchecked front Lock for one of the events for the control and for others it was lock the front panel. That's why it was insensitive.

  • Restart after that a windows update problem with VirusScan from McAfee (total Protection)

    I'm under 64-bit Windows VISTA Home Premium SP 1 on a Dell Studio 540 desktop.  8.0 GB RAM.  Intel Core 2 Quad Q9400 CPU @ 2 .66GHz.
    Late last night, I started the PC to go online.  Shortly after, I was invited by Windows update to restart.  So I closed off everything and rebooted, except that I kept scheduled analysis of McAfee, which I set up for Fridays.  I have McAfee Total Protection, which includes VirusScan.  That the PC would shut down, there was a message on the screen of McAfee who said, essentially, stop this scan before restarting.  I'm paraphrasing - I didn't write down the exact message.  After reboot, I started again the background anti-virus scanning.  After a few minutes, I received the following message:
    Microsoft Windows
    Order McAfee VirusScan Scan - Are asked to work and was closed. A problem with the application to stop functioning properly. Windows will notify you if a solution is available.
    I have not received a solution of Windows.  I completely uninstalled McAfee Total Protection, following the instructions of McAfee, then reinstalled.  Everything went very well with these processes.  I have yet to receive an indication of the McAfee software that something is wrong.  After the reinstallation, I tried a scan, but got the same error message as above after a few minutes.  It does not occur immediately, analysis continues for about 5 minutes, then abandoned.
    Chatted with Dell today.  They suggested a system restore, I will try then.

    What updates have been installed?

    During certain infections that are designed to defeat security software will cause the bomb on analyses with an error.

    I also suggest you contact the McAfee Support since it is their product which blocks.  http://service.McAfee.com/TechSupportHome.aspx?LC=1033&SG=TS

    To view installed updates:

    1. click on start > Control Panel > Classic view > Windows Update.

    2. along the top, click view update history.

    3. click on installed updates

    4. you can sort by name, status, Type, or Date updates. You can also click on each update and select Show details to access the details of this update.

    Microsoft partner - "gentlemen, you can't fight in here! This is the war room. »

  • 7 error "Paris 7.2.241.1enRegInstaller.exe of work and has been closed." A problem with the application to stop functioning properly. Windows will notify you if a solution is available.

    Original title - 7.2.241.1enRegInstaller.exe

    Hello.

    Today, JUST after I "Set Windows to update," twice, I got the disconcerting message:

    "Paris 7.2.241.1enRegInstaller.exe of working and was closed".

    A problem with the application to stop functioning properly.  Windows will notify you if a solution is available. »

    Any wisdom or experience with this?  I'm on a 64-bit HP Pavilion older (dv7-1245dx) with this OS JUST-update Windows (Vista Home Premium).

    Thank you.

    GIES W

    The solution has been found just uninstall bing bar, restart the computer, and if you want just bing toolbar to reinstall. This easy solution my system fixed.  Bing has again reminded all my points that I have amassed

Maybe you are looking for