Jump to content
  • 0

USB-1608GX AinScan


Ron Byron

Question

Continuing the struggle.   I'd like to make a single 256 data point scan of all 16 channels at the highest rate 312 samples per sec. 

load the values into an Array(Points, Channel, Value) .   

I just don't get why we are Ping pong from halfbuffer  other than it being in continuous mode in this example.

Would you have a similar example that I could study?  

 

Thanks

Ron Byron

 

VBNET_2013_Cont_Background_Scaled_Data.zip

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Ping-ponging between the two buffer halves is an easy and efficient way to manage a circular buffer. To perform a single acquisition of a fixed number of points, you could use the current count parameter from GetStatus to determine when to end the acquisition. You could also change the scan options to just ScaledData. This will tell the AInScan function to wait until the acquisition is complete before returning control to the program. Once it returns, use ScaleWinBufToArray to copy the driver data into an array. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...