PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

ComponentWorks 6.0 appears to block during data acquisitions.

My application requires data to be collected at 100 ms intervals. If I have ComponentWorks 6.0 collect data at this rate, the application hangs. I have been unable to affect this behavior regardless of the clock or buffer settings I use or the start/stop settings.
0 Kudos
Message 1 of 4
(3,105 Views)
KLofgren,

Here is an example of a buffered analog input for VB which may or may not prove useful:

Example: Buffered Analog Input for Visual Basic

You may also want to check out the Measurement Studio Support page. If these resources fail to help out then please post back with more detail on which DAQ devices you are using and perhaps some more information on how your code is attempting to acquire your data. Good luck!

Craig H.
National Instruments
0 Kudos
Message 2 of 4
(3,105 Views)
Thanks for you help. I've run the example you sent me and I still get the application hanging until the scan is complete. In the case of continuous scan, the application hangs indefinitely. Is there any work around for this issue? I am considering placing my data acquisition in a DLL that I can run in a background thread to eliminate the problem. I was hoping there was another easier and more robust solution.
0 Kudos
Message 3 of 4
(3,105 Views)
KLofgren,

Make sure that you are using Traditional NI-DAQ because NI-DAQmx is not designed for VB 6.0. Have you tried running your program on another system? In order to really help resolve this issue I need to know some basic information about your setup: Operating System, version of NI-DAQ, which DAQ card/device are you using, and some details on which functions you are using in your code. If you are using a third-party instrument make sure that you have obtained the latest software drivers for your instrument: Search Instrument Driver Network.

Here is a document that you may find useful: 005CE161?opendocument>M
easurement Studio Analog Input


I hope this helps some. With some more information about your setup we should be able to help you out! Thanks!

Craig H.
National Instruments
0 Kudos
Message 4 of 4
(3,105 Views)