Data Translation
Data Translation Knowledge Base
Home / All Categories / Imaging Software / Development
KB HomeKnowledge Base Home | SearchSearch

AcquireMem Method w/SingleShot, DT3162

I am creating a custom Visual Basic application for my DT3162. The DT-Active Monochrome Frame Grabber Control Help gives an example code with the AcquireMem Method. The example uses 'SingleShot' as a variable for Mode. However, when I try to use 'SingleShot' in my application, VB returns a ""Compile error: Variable not defined"". The DT-Acquire2 example application that comes with the installation uses 'SingleShot' as well, yet it works fine. I looked through the Help and the User's Manual for that variable, but it is not defined anywhere. Are the options for Mode only SinglePassSync, SinglePassAsync, and ContinuousAsync?" "Yes, for the method AcquireMem, the Mode parameter can only be either SinglePassSync, SinglePassAsync or ContinuousAsync. The variable 'SingleShot' is an error. If you do not use ""Option Explicit"" in your Visual Basic code, then an unknown variable in the parameter will default to a value of zero (0) which is SinglePassSync. However, if you do call ""Option Explicit"" in your VB program and use 'SingleShot', then you will get an error message.  *Created: 10/18/05.

Copyright © 2013 Data Translation, Inc. All rights reserved.