找回密码
 注册
Simdroid-非首页
查看: 112|回复: 3

求助:pcl中有没有延时(或停顿)函数?

[复制链接]
发表于 2007-4-7 21:27:17 | 显示全部楼层 |阅读模式 来自 LAN
就是执行到这个函数,程序停一段时间,然后再接着执行下面的函数。
或者请大家帮忙想个办法,看通过其他什么办法可以实现。
     我要做的事情是循环控制建模过程,让nastran计算,计算完了读结果,因为nastran计算需要一定的时间,所以程序必须先停止一段时间,然后等nastran计算完了才能读结果。
                              盼高手赐教!
发表于 2007-4-12 11:07:08 | 显示全部楼层 来自 LAN
Simdroid开发平台
utl_process_spawn( command, wait )

Description:        
The program will execute a “fork” system call (or “vfork”, depending on the specific machine implementation) followed by an “execvp” system call with the “command” specified by the caller as its argument. The spawned command becomes a “process group leader.” This allows all processes created by this spawned process to be killed via the abort button or UTL_PROCESS_KILL. Redirection cannot be used in subprocess commands entered via utl_process_spawn. If redirection is required for the subprocess it is recommended that a bourne shell script be created which accepts the redirected input and output files as arguments and then issues the actual command of interest, including the redirection. This bourne shell script is what should be input to the utl_process_spawn function in this case.  
Input:        
STRING  command  Command string to execute.  
LOGICAL  wait  True to wait for completion before continuing. False to execute command asynchronously.  
Output:        
INTEGER  <Return Value>  If WAIT is TRUE, then a return code is returned which needs to be checked by utl_process_error. If WAIT is FALSE, then the process group ID of the subprocess is returned. On Windows NT if WAIT is FALSE, then zero is returned.  
Error Conditions:     
None.        


Example:
stat = utl_process_spawn( “lpr results.out”, TRUE )
IF( utl_process_error( stat ) ) THEN
utl_display_process_error( stat, 3 )
END IF
Important:  The spawned process must not return the value 253. This value is reserved for MSC internal use.
发表于 2013-4-19 15:29:06 | 显示全部楼层 来自 北京
为什么这个语句在2011版的不可以实现啊
回复 不支持

使用道具 举报

发表于 2013-4-19 15:31:08 | 显示全部楼层 来自 北京
为什么这个语句在2011版的不可以实现啊
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-30 06:27 , Processed in 0.054269 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表