02-26-2008 11:12 AM
02-26-2008 02:29 PM
Hi Maurice-
I received your product suggestion; thanks for filing it.
I would like to emphasize that the NI-DAQmx Base code itself does not call into HIToolbox directly but that LabVIEW (the environment in which NI-DAQmx Base is developed and compiled for release) has some reliance on HIToolbox. However, the DMA and USB streaming processes for NI-DAQmx Base are external, non LabVIEW-based libraries that run safely "under the hood" in seperate threads from the main NI-DAQmx Base API threads.
So, you should be able to adjust your use of the API to avoid blocking your application's GUI. Without knowing more about your application I would offer these suggestions:
I'll assume you are performing some kind of multi-point analog or digital input operation, either finite or continuous. The DAQmx Base read functions are designed to block until either the requested number of points become available or until the user-defined timeout expires.
One way to avoid prolonged blocking is to read more often by requesting smaller data sets with each call to DAQmx Base read. In the case of a finite acquisition you may need to replace a single call to DAQmx Base read with multiple calls in a loop. For continuous mode, you should already be using a looped DAQmx Base read operation so you could simply lower the number of points read with each iteration and then reassemble the complete data set at a later, more convenient time for your application.
DAQmx Base write operations are not designed to block under normal operation, so you shouldn't need any adjustments to AO or DO tasks.
Hopefully these suggestions will be helpful to improve performance for your app.
04-10-2008 10:58 AM
04-10-2008 11:07 AM
Hi maurice-
Yes, the KnowledgeBase is indeed true. NI-DAQmx Base does not support USB-622x/625x/628x devices at this time (spring 2008), so support for those devices is unfortunately limited to Windows currently. We do not have plans to add them in the next release of NI-DAQmx Base, but could consider it for future releases. Please feel free to file a product suggestion here to request support for that device if you need it.
Thanks-
04-10-2008 12:06 PM
04-10-2008 12:11 PM
04-10-2008 01:03 PM