Repeatedly calling function using IPC

procedure( PartChecking( strcvData )
le( (instCellName)
ATPPart = nil
if( (memq("PPMU" instCellName) || (memq("DPS"
instCellName)
then
ATPPart = "Part2"
else
if( (memq("vdc" instCellName) ||
(memq("idc" instCellName)
then
ATPPart = "Part1"
)
)
); let
)
I'm sorry, but your code doesn't make too much sense... Let alone the typo (le => let), you are
defining a local variable (instCellName), which is not initialized (well, to nil by default), and
then you are calling memq on this variable (which doesn't have a value).

The argument strcvData is not used, and ATPPart is global. The return value of your function doesn't
seem very well defined (unless you know what you are doing).

What's this procedure exactly supposed to accept as parameter, and what's it's expected return value ?

Stéphane
 

Guest
Hello! I'm just a beginner in developing a software.We're now
developing a software using Tcl/Tk and SKILL. We have extracted data
on schematic using SKILL function. We've transfer the data to the Tcl/
Tk using IPC.

But I have a problem. I made a funciton that will determine if the
schematic is Part2 if it contains "vdc or idc" and Part2 if it
contains "PPMU or DPS". On the first process( call of the function) it
successfully determined the corresponding Part of the schematic but if
I call this function again, the function does not gave the expected
result. What is the problem? is it in IPC or in my function.


procedure( PartChecking( strcvData )
le( (instCellName)
ATPPart = nil
if( (memq("PPMU" instCellName) || (memq("DPS"
instCellName)
then
ATPPart = "Part2"
else
if( (memq("vdc" instCellName) ||
(memq("idc" instCellName)
then
ATPPart = "Part1"
)
)
); let
)

Hope there will help me on this thing. Thank you and God bless! : )
 
On Jan 11, 9:20 am, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch>
wrote:
procedure( PartChecking( strcvData )
      le( (instCellName)
                ATPPart = nil
                if( (memq("PPMU" instCellName) || (memq("DPS"
instCellName)
                            then
                                  ATPPart = "Part2"
                            else
                                 if( (memq("vdc" instCellName) ||
(memq("idc" instCellName)
                                       then
                                            ATPPart = "Part1"
                                 )
                )
     ); let
)

I'm sorry, but your code doesn't make too much sense... Let alone the typo (le => let), you are
defining a local variable (instCellName), which is not initialized (well, to nil by default), and
then you are calling memq on this variable (which doesn't have a value).

The argument strcvData is not used, and ATPPart is global. The return value of your function doesn't
  seem very well defined (unless you know what you are doing).

What's this procedure exactly supposed to accept as parameter, and what's it's expected return value  ?

Stéphane- Hide quoted text -

- Show quoted text -

It's okay by the way thank you for your comment. I'm in a hurry when I
posted my question.Tnx...
 

Welcome to EDABoard.com

Sponsor

Back
Top