hexagon logo

PC-DMIS form display problem

Greetings,

I am very new to PC-DMIS and not a quality personnel, so please excuse me if I ask something very basic.

I am asked to automate our measurements in various ways and I have a good experience in using visual basic. We are using software version 2010 MR3 (as i remember, it's on another site so I couldn't double check) and I have experienced a problem with using forms, I create a form and save it with no problem, but in a sample program to test this, the program runs and ends without displaying the form (I did put the syntax to call the form). Maybe it flashes and continues on to execute without waiting for user input, I'm totally stuck here and I couldn't find any information online. I'm hoping someone can help me.

Best Regards,
  • Hej,

    The code is in local language, and I'm not at the terminal where PC-DMIS is installed but I'll try to translate it as;

    CS# Form/filepath
    Parameters
    EndOfForm

    I'm sure there are syntax errors on the above, but I didn't type the code, instead, I inserted it from the menu, so I believe that it is not syntax related, I get no syntax errors either.

    Hope this is more clear, I'll post the original code when I'm at the terminal with PC_DMIS.

    Tack,
  • I'll certainly give that a try but I would think that form.visible would be true by default, I'm more inclined to think that I'm doing something wrong with the DMIS code rather than the basic code.

    Merci,
  • Hello;

    The DMIS code is as follows,

    CS1 =BİÇİM/DOSYAADI= C:\USERS\KULLANICI.ADI\DESKTOP\FORM1.FORM
    PARAM/=
    BİÇİMBİTİŞ/

    And as i said, it is in my local language, Turkish. I can translate it to something like;

    CS1 =FORM/FILENAME= C:\USERS\USER.NAME\DESKTOP\FORM1.FORM
    PARAM/=
    ENDFORM/

    And in the EventInitialize subroutine, I added the line: form.visible=true, however, the problem persists. To check if execution enters this procedure at all, I made a syntax error by typing another line "asdf", and did not get an error, leading me to think that the sub is not called.

    Any help will be much appreciated.

    Thanks in advance,
  • When you insert the code for calling the FORM, the command (in the PC-DMIS program) is by default "unmarked".
    This means that the command will not be executed, ie. commented out from execution.
    The background of the command is usually blue when it is unmarked.

    Try placing the cursor (in the PC-DMIS part program) in the command calling the FORM and press F3 once.
    If it was unmarked (ie. blue background) it should now look like any other command in the part program.
    Try run the part program again (or just the command calling the FORM) and see if the FORM is displayed.
  • Do you have PC-DMIS visible? As forms show up inside the PC-DMIS main window, not as free standing windows, they are not visible if PC-DMIS is not visible.