SKILL question

  • Thread starter Mohamed Abdel Baset
  • Start date
M

Mohamed Abdel Baset

Guest
Hi all,

I want my SKILL code to stop at certain line (without halting the CIW)
till a variable is set to certain value then resume working again.

Can anybody help?

Thanks in advance,
Mohamed
 
Mohamed Abdel Baset wrote, on 06/24/10 15:12:
Hi all,

I want my SKILL code to stop at certain line (without halting the CIW)
till a variable is set to certain value then resume working again.

Can anybody help?

Thanks in advance,
Mohamed
Hi Mohamed,

Not sure I understand. Could you illustrate what you're wanting with some pseudo
code? How is the variable going to get set?

Bear in mind that SKILL is single threaded, so that may answer your question
for you, but maybe you could use the setguard() function in SKILL to register a
function to be called when a named variable changes, and then it can execute
some code when it has a certain value?

See the documentation on setguard - maybe this does what you want?

Regards,

Andrew.
 
On Jun 25, 2:13 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Mohamed Abdel Baset wrote, on 06/24/10 15:12:

Hi all,

I want my SKILL code to stop at certain line (without halting the CIW)
till a variable is set to certain value then resume working again.

Can anybody help?

Thanks in advance,
Mohamed

Hi Mohamed,

Not sure I understand. Could you illustrate what you're wanting with some pseudo
code? How is the variable going to get set?

Bear in mind that SKILL is single threaded, so that may answer  your question
for you, but maybe you could use the setguard() function in SKILL to register a
function to be called when a named variable changes, and then it can execute
some code when it has a certain value?

See the documentation on setguard - maybe this does what you want?

Regards,

Andrew.
Hi Andrew,

The following is my code:
cid = edit(<text-file-path>)
;;;I want to stop execution here till cid is "dead" i.e.
ipcIsAliveProcess(cid) = nil that means "user has exited the editor"
;;;then here is the rest of the script
I think setguard is not what I am searching for.

waiting your replies,
Mohamed
 
Mohamed Abdel Baset wrote, on 06/25/10 17:05:
Hi Andrew,

The following is my code:
cid = edit(<text-file-path>)
;;;I want to stop execution here till cid is "dead" i.e.
ipcIsAliveProcess(cid) = nil that means "user has exited the editor"
;;;then here is the rest of the script
I think setguard is not what I am searching for.

waiting your replies,
Mohamed
Mohamed,

You could just do:

ipcWait(cid)

but this will block Virtuoso until the editor is exited.

Otherwise you could use ipcBeginProcess("nedit fileName" "" 'myDataHandler
'myDataHandler 'myExitHandler)

and then the function myExitHandler will get called when the editor is exited.

Read the documentation on ipcBeginProcess for more details.

Best Regards,

Andrew.

--
Andrew Beckett
Senior Solution Architect - Cadence Design Systems Ltd (UK)
 
On Jun 29, 10:36 am, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Mohamed Abdel Baset wrote, on 06/25/10 17:05:



Hi Andrew,

The following is my code:
cid = edit(<text-file-path>)
;;;I want to stop execution here till cid is "dead" i.e.
ipcIsAliveProcess(cid) = nil that means "user has exited the editor"
;;;then here is the rest of the script
I think setguard is not what I am searching for.

waiting your replies,
Mohamed

Mohamed,

You could just do:

ipcWait(cid)

but this will block Virtuoso until the editor is exited.

Otherwise you could use ipcBeginProcess("nedit fileName" "" 'myDataHandler
'myDataHandler 'myExitHandler)

and then the function myExitHandler will get called when the editor is exited.

Read the documentation on ipcBeginProcess for more details.

Best Regards,

Andrew.

--
Andrew Beckett
Senior Solution Architect - Cadence Design Systems Ltd (UK)
Thanks for your help
Mohamed
 

Welcome to EDABoard.com

Sponsor

Back
Top