This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

D4100Explorer and block reset

Dear sir,

Sometimes "Reset" script at each blocks does not operate correctly with using D4100Explorer and do not display some blocks on Discovery4100.
We could see 4-5times (do not reset) out of 50 loops.
But if we use "Load and Reset" instead of "Reset" at each block, it could work correctly even if we loops over 100times.

Is this a tool bug or have to do "load and reset" at each time?

The followings are what we did.
<sometimes fail>
1 Image
2 C:\black_JPG.jpg
1 Load
2 Global
1 Reset
2 Block 1
1 Reset
2 Block 2
1 Reset
2 Block 3
1 Reset
2 Block 4
1 Reset
2 Block 5
1 Reset
2 Block 6
1 Reset
2 Block 7
1 Reset
2 Block 8
1 Reset
2 Block 9
1 Reset
2 Block 10
1 Reset
2 Block 11
1 Reset
2 Block 12
1 Reset
2 Block 13
1 Reset
2 Block 14
1 Reset
2 Block 15
1 Reset
2 Block 16
1 Delay
2 Msec 1000
1 Image
2 C:\white.bmp
1 Load
2 Global
1 Reset
2 Block 1
1 Reset
2 Block 2
1 Reset
2 Block 3
1 Reset
2 Block 4
1 Reset
2 Block 5
1 Reset
2 Block 6
1 Reset
2 Block 7
1 Reset
2 Block 8
1 Reset
2 Block 9
1 Reset
2 Block 10
1 Reset
2 Block 11
1 Reset
2 Block 12
1 Reset
2 Block 13
1 Reset
2 Block 14
1 Reset
2 Block 15
1 Reset
2 Block 16
1 Delay
2 Msec 1000

* If we do "load and reset" instead of "reset" above, it works fine.

Regards,
Takeshi

  • Hello Takeshi-san,

    I am sorry for the delay with the holiday's.  I missed this posting. 

    The difference between "load and reset" and the script you are doing, is that the reset is global when you do a "load and reset'.  Could you try the following:

    1 Image
    2 C:\black_JPG.jpg
    1 Load
    2 Global
    1 Reset
    2 Global
    1 Delay
    2 Msec 1000
    1 Image
    2 C:\white.bmp
    1 Load
    2 Global
    1 Reset
    2 Global
    1 Delay
    2 Msec 1000

    Then tell me if this works consistently.  This is equivalent to "load and reset" but does it in two separate steps. 

    When it does fail, do all of the blocks not reset or only some of them?

    You may need t to add a very small delay between the individual block resets.

    Fizix

  • Hi Fizix-san,

    We tried your sequence and we confirmed that the problem is gone.
    However, you meant the "block reset" still have a problem that some block could not load sometimes?

    Or the delay is the point to fix this problem?

    Takeshi

  • Hi Takeshi-san,

    Could you try placing the command

    1 Delay
    2 Msec 1

    between each individual block reset command.  Does this eliminate the occasional failure.  If so then there is a collision between completing each reset command and the next USB command.

    Fizix