On AI OCX Object I have set property in BUFFER>>Number of Scan to acquire = 600, Allocation Mode = Host Memory, Return data type = scaled data only And in Clock >> Clock=Scan, Clock Sourec Type = Internal,Scan/Second = 600 And in CONDITIONS>> Condition=Stop and Continuous..
But when I want to set them at runtime I am not getting proper output
I have defined at runtime...
CWAI1.NScans = 600
CWAI1.ScanClock.Frequency = 600
CWAI1.AllocationMode = cwaiHostMemory
CWAI1.ScanClock.InternalClockMode = cwaiFrequency
CWAI1.ScanClock.ClockSourceType = cwaiInternalCS
CWAI1.UseDefaultBufferSize = True
CWAI1.Configure CWAI1.start
Please guide me ... where I am getting wrong
Best Regards