Jump to content
  • 0

CbAinScan() vs CbAin() speed


CLI

Question

Hi,

I am currently using a DAQ USB-2416-4AO to scan voltages using the function "CbAInScan()" in background mode
which allows us to scan at a very high frequency (like >1kHz). I would like now to be able to scan temperatures and
voltages alternatively with a similar frequency. However I now have to use the functions "cbAin()/cbAin32()" and cbTin()" and
theses functions seem to take a long time to execute. If for example if I run ULAI01.c, I am measuring half a second for cbAIn32() to return a value.

Could you tell me if it is possible to do this scanning faster and if I am doing something wrong?

Thank you

    CLI

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello @CLI.

If using thermocouples with the USB-2416-4AO to measure temperature, we suggest reducing the data rate for the thermocouple channels to 60 S/s, in InstaCal, in order to reduce the effect of 60 Hz noise.  If that rate is too slow for your application, try setting all analog input channels data rate to the maximum in InstaCal.  There is no other function, if increasing the data rate does not help you.

User's Guide:  https://www.mccdaq.com/pdfs/manuals/USB-2416-4AO.pdf

Universal Library Help:  https://www.mccdaq.com/pdfs/manuals/Mcculw_WebHelp/ULStart.htm

 

Regards,

Fausto

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...