ImageEn, unit iexdcim

TIEDcimAcquire.Refresh

TIEDcimAcquire.Refresh


Declaration

function Refresh(): Boolean;


Description

Rebuilds the source list to detect any newly connected/removed devices.

Result is false if a failure occured.


Example

// Add the name of all sources to our source selector
procedure TfrmMain.btnRefreshClick(Sender: TObject);
var
  I : Integer;
begin
  ImageEnView1.IO.AcquireParams.DCIMParams.Refresh();
  cmbSources.Items.Clear();
  For I := 0 to ImageEnView1.IO.AcquireParams.DCIMParams.SourceCount - 1 do
    cmbSources.Items.Add( ImageEnView1.IO.AcquireParams.DCIMParams.Sources[ I ];
end;