function SetWindowDas()
    global Par
    NumWins = size(Par.WIN, 2);
    WIN = Par.WIN;

    dassetwindow( NumWins, WIN(:), Par.Bsqr, Par.SCx*Par.xdir, Par.SCy*Par.ydir )
    %third parameter is bool; square (1) or ellips (0)
    %Mouserun; use mouse instead of das input
Attempt to reference field of non-structure array.

Error in ==> SetWindowDas at 3
    NumWins = size(Par.WIN, 2);