run -> pause -> run without using debugger

run -> pause -> run without using debugger

Post by pc_de » Fri, 16 Dec 2005 15:19:44


Titus wrote;
why not use de *** with using stoptime 2s.

Thanks for replay.

but in my case simulation accepts input runs for specified time and
then pauses (without using de *** ), next time it will run again for
specified time ofcourse from the point where it was paused before and
then pause.

here is the query which i posted tomorrow.

how can i run a model in simulink for some specified time say 2 sec,
such that it will pause after the 2 seconds insted of stoping which
is the normal behaviour of simulink.

for this i have made a m-file, i run this function at command line,
the simulation time is set to "inf" but it hangs the matlab, which i
do not understand, it should pause the simulation at required time.

m-file is given below;

j = 0;
requiredtime = 5; % time to which i want to run the
% simulation and pause at that.

% it will run the model whose name is test
get_param('test','SimulationCommand','start');

while(1 == 1) % endless loop

% now i will get current simulation time
j = get_param('test','SiumulationTime');


% if current time is equalto or greater than the
% required time then pause simulation and
% break the loop.

if j >= requiredtime
set_param('test','SimulationTime','pause');
break;
end

end

any option or command that gives the desied behaviour ?
 
 
 

1. forward without >>>>>>>>>>>

2. Form -> Pull ID -> Run Query -> Run Report All in one click?


Hi,

I would like to know if anyone knows a code for a button
for the following need?

I am in a Data Entry Form which is linked to a table.
I need to run a report that is based no a Query.
My problem is I would like to know a code that when I
click the button it will simply insert the current form
records TransID into a query which will open the report
that it is based on....


Recap chaos:

All records have a unique - TransID
The query is called - QEditFP
The report is called - REditFP

PLEASE and thanks again to EVERY helping professionals!!!

Vince

3. >>>>>>>>>>>>>>>>>>>>>>>>>>>>test - no reply - ignore

4. HELP !!>>>>>This program cannot be run in DOS mode ..?????????????

5. Form -> Pull ID -> Run Query -> Run Report All in one click?

6. <>>>>>>>>>>>>>>>>>>>>>>>?

7. >>>>>>>>>>>>Index.dat

8. >>>>#### >>>> Make BILLIONS Online Without Investment >>>#####>>>>>

9. vertical alignment>>>>>>>>>>

10. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

11. >>>>>>>>>>>>>>>>>>> Visual C++ 2005 Express-----------------------

12. ==========================>>>>>>>>>>>>>>>>>>> AS/400 controller PERLE 494 for sale

13. >>>>>>>>>>>>>>>>>>>

14. Can't Run Code using Run>Run Sub/User Form

15. PLEASE HELP>>>>>>>>>>>>>>>>>>