Could ipcBeginProcess do more than one thing but not step by step ?

Discussion in 'Cadence' started by chentaison, Mar 23, 2009.

  1. chentaison

    chentaison Guest

    Dear All,

    I want to check 5 files , and use ipcBeginProcess to knows each file
    information.
    I can use loop to do 5 times , but I want to know each file
    information almost the same time ? (Not step by step)

    Thank you,
    Charley
     
    chentaison, Mar 23, 2009
    #1
  2. Can't you just call a script with ipcBeginProcess which gets passed a set of
    filenames, and returns the info for all of them?

    It's rather hard to give you much advice, because your question is not very
    specific.

    Regards,

    Andrew.
     
    Andrew Beckett, Mar 24, 2009
    #2
  3. chentaison

    chentaison Guest


    Hi Andrew,

    I am using script file to do all ipcBeginProcess , but I want all
    stdout message to each independent form , But it will only
    do first ipcBeginProcess and send message to its form ,the other
    script won't be continued unless the form is not displayed.
    How to all stdout message to each independent form and run each
    script ?
     
    chentaison, Mar 27, 2009
    #3
  4. I'm sorry, but I cannot fathom out what you're actually asking here. You're
    probably assuming that I'm familiar with your code...

    Regards,

    Andrew.
     
    Andrew Beckett, Mar 28, 2009
    #4
  5. chentaison

    chentaison Guest

    Hi Andrew ,

    procedure( QQ()

    ;template is a file
    cmd1 = "pipo strmout template"
    ipcId1 = ipcBeginProcess(cmd1 "" data1 err1 exit1 )
    ipcWaitForProcess(ipcId1)
    hiDisplayAppForm(form1) ;;;;; If i write this , though it will
    send data1 to form1->strFeild1->value
    ;;But cmd2 , cmd3 & cmd4 wont be launch
    until the data1 is null

    cmd2 = "pipo strmout template"
    ipcId2 = ipcBeginProcess(cmd1 "" data2 err2 exit2 )
    ipcWaitForProcess(ipcId2)
    hiDisplayAppForm(form2)

    cmd3 = "pipo strmout template"
    ipcId3 = ipcBeginProcess(cmd1 "" data3 err3 exit3 )
    ipcWaitForProcess(ipcId2)
    hiDisplayAppForm(form3)

    cmd4 = "pipo strmout template"
    ipcId4 = ipcBeginProcess(cmd1 "" data4 err5 exit4 )
    ipcWaitForProcess(ipcId2)
    hiDisplayAppForm(form4)

    );pro

    procedure(data1(ipc1 data1)
    form1->strField1->value = data1
    );pro

    procedure(data1(ipc2 data2)
    form2->strField2->value = data2
    );pro

    procedure(data3(ipc3 data3)
    form3->strField3->value = data3
    );pro

    procedure(data4(ipc4 data4)
    form4->strField4->value = data4
    );pro

    procedure( form1_()
    hiCreateStringField(
    ?value ""

    form1 = hiCreateAppForm(
    ..
    ..
    );
    );pro

    procedure( form2_()
    hiCreateStringField(
    ?value ""

    form2 = hiCreateAppForm(
    ..
    ..
    );
    );pro

    procedure( form3_()
    hiCreateStringField(
    ?value ""

    form3 = hiCreateAppForm(
    ..
    ..
    );
    );pro

    procedure( form4_()
    hiCreateStringField(
    ?value ""

    form4 = hiCreateAppForm(
    ..
    ..
    );
    );pro
     
    chentaison, Mar 30, 2009
    #5
  6. My guess (you didn't include all the code) is that you didn't pass ?dontBlock t
    to the hiCreateAppForm, and so the forms are all "blocking". This means that the
    hiDisplayForm (I assume that was a typo, since the function is hiDisplayForm,
    not hiDisplayAppForm) will block until you OK or cancel the form - which is
    presumably not what you want?

    Read the documentation about blocking behaviour of the forms.

    Regards,

    Andrew.
     
    Andrew Beckett, Mar 30, 2009
    #6
  7. chentaison

    chentaison Guest

    Hi Andrew,

    I got it. It works.

    Thank you,
    Charley
     
    chentaison, Apr 6, 2009
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.