Is there no doc's or help?This is software that came with the board from the manufacturer. I do not have the source code to the DTAFGMON1 object, which I think is what I need.
lists of the available properties, methods, and events ?
In the,
You have,Code:Public Sub mnuStartContinuous_Click()
and in,Code:'Acquire multiple images into the frame buffer Call frmMain.DTAFGMON1.AcquireMem(0, 2, ContinuousAsync)
Code:mnuSaveImageFile_ClickSo, in the, ''Save image to bitmap file''Code:'Acquire an image into the frame buffer. frmMain.DTAFGMON1.AcquireMem(0, 1, SingleShot)
You Set Buffer to DTAFGMON1.GetBuffer(0)Code:'Save image to bitmap file. Dim FrameBuffer As DTBuffer Set FrameBuffer = frmMain.DTAFGMON1.GetBuffer(0)
So maybe same for ContinuousAsync.
Just a guess !
Maybe the manufacturer can help with that.
But you know you have,
And a ''DTBuffer''.Code:frmMain.DTAFGMON1.Visible frmMain.DTAFGMON1.AcquireMem(0, 1, SingleShot) frmMain.DTAFGMON1.GetBuffer(0) frmMain.DTAFGMON1.AcquireMem(0, 2, ContinuousAsync) frmMain.DTAFGMON1.CloseDevice frmMain.DTAFGMON1.StopAcquire 'Open the Configuration property pages DTAFGMON1.ShowPropPages(frmMain.hWnd, pfInput Or pfOutput Or pfCapture Or pfLUT) frmMain.DTAFGMON1.OpenDevice(BoardName) frmMain.DTAFGMON1.LoadConfigFile NumDTBoards = frmMain.DTAFGMON1.DeviceCount cboSelectDevice.AddItem frmMain.DTAFGMON1.GetDeviceName(i) frmMain.DTAFGMON1.WriteDigitalOutputPattern(DigitalOutputPattern) DigInValue = frmMain.DTAFGMON1.ReadDigitalInputPattern frmMain.DTAFGMON1.Timeout = frmMain.DTAFGMON1.InputLineEventMask = HF
So that's a good start.




Reply With Quote