Having issues trying to display to more than 1 laser

Discussion in 'The Lounge' started by Manuel Pastene, Nov 5, 2015.

  1. Manuel Pastene

    Manuel Pastene New Member

    Hi everybody,

    I'm currently developing a little piece of software that displays different frames depending on the buttons I click.
    The first laser is connected through a switch to my computer. The problem comes when I connect a second laser to the switch and I order it to display a frame. The first laser does it flawlessly but the second doesn't even seem to get the instruction.

    This is the method I'm using (supplied by a helpful Pangolin engineer):

    procedure TForm1.Button1Click(Sender: TObject);
    begin
    //----------------------------------------------------------------------------
    // Show 1st frame on 1st projector
    //----------------------------------------------------------------------------
    SetWorkingScanners(1);// Select 1st projector
    SetWorkingTracks(1); //Display track 1, use it constantly

    DisplayFrame(1);
    //DisplayFrame(2); also works fine
    DisplayUpdate;
    end;


    The procedure for the second laser is

    procedure TForm1.Button3Click(Sender: TObject);
    begin
    MessageDlg('Second laser shooot!', mtInformation, [mbOk], 0);
    //----------------------------------------------------------------------------
    // Show 3rd frame on 2st projector
    //----------------------------------------------------------------------------

    SetWorkingScanners(2);// Select 2nd projector
    SetWorkingTracks(1); //Display track 1, use it constantly

    DisplayFrame(3);
    DisplayUpdate;
    end;


    A simple video showing the program working is here: https://drive.google.com/file/d/0BytaR0f9cf3PNDNLZ0l0TmFnYlE/view?usp=sharing

    How can I make the second laser to work? Is there an extra configuration I need to perform? I have added the main Pascal file for reference.

    Thanks!
     

    Attached Files:

  2. Pangolin

    Pangolin Staff Member

    You're not doing it in the way we would suggest...

    Many many many (like maybe 15) years ago, it was "proper" to try to send laser frames to scanners in the way you are trying to do now. But once we invented Projection Zones, we now would recommend something like the following:

    SetWorkingScanners -1 ;Select all scanners to receive all instructions
    SetWorkingTracks 1
    DisplayProjectionZones 1 ;Assign Projection Zone 1 to Track 1

    SetWorkingTracks 2
    DisplayProjectionZones 2 ;Assign Projection Zone 2 for Track 2

    SetWorkingTracks 1
    Do something -- this goes to Zone 1 (which you can assign to Scanner 1 in LD2000 Projection Zones Settings)

    SetWorkingTracks 2
    Do something -- this goes to Zone 2 (which you can assign to Scanner 2)

    ...etc...

    See the main point is that now we don't really do anything with "scanners". Now (for the past 15 years) everything is done with zones. In LD2000, you assign particular scanners to particular zones. From that point forward, any time you send something to a zone (through a track for example), then it will be routed to a scanner.

    Best regards,

    William Benner
     

Share This Page