I am trying to enable and disable lamp after pause(1), i.e. one second interval.
ps = 10;
n = 1;
while (ps == 10)
app.Lamp2.Enable = 0;
app.Lamp3.Enable = 0;
app.Lamp2.Enable = 1;
app.Lamp3.Enable = 1;
It prints Hi! after each secon in the command window, but doesn't show the flasing the lamp. I tried changing the pause value to different values like 0.5, 1, 2 etc.
Still couldn't get output.
Also, I get sometime error like,
Invalid or deleted object., Just after the pause(1) line.
Can some plese suggest me into this?