11-22-2005 11:41 AM
11-22-2005 04:33 PM
This is from NI's tutorial titled: (hyperlink below)
Visual Basic .NET and USB DAQ Demonstration
Learn how to configure and program a complete USB data acquisition system that combines data acquisition, engineering analysis, and presentation.
Also, I got the continuous acquisition of the USB 6009 to work after "resetting" the DAQ using the Measurement and Automation Explorer "Reset Device" button. Don't know why it would not work by just changing the acquisition mode from the DAQmxTask1.mxb to continuous and rebuilding from the development environment in Visual Basic .NET.
Dave
11-23-2005 03:29 PM
Hey Star Sear,
You need to declare it as: Dim analysisData() as Double
You are trying to assign an array to a double instead of an array to an array. Let me know how that turns out.
11-30-2005 09:53 AM
Thanks Sam,
Yes, your suggestion fixed the acquisition and spectral analysis. New problem however.
When working thru the tutorial to add the 2nd waveform graph to the DAQmxUserControl1 (after deleting the user control from the Form1), all seems well. (Screenshot of the revised DAQmxUserControl1 attached as jpg image).
However, after building and added the revised user control to the Form1, the 2nd waveform graph appears "imbedded" in the frame of the original DAQmxUserControl. (Screenshot attached) I can't seem to decouple this arrangement, no matter how I try.
Perhaps it is a bug with the Visual Studio 8 beta?
11-30-2005 04:13 PM - edited 11-30-2005 04:13 PM
Hey Dave,
We really should start a new thread for this. I have reproduced your issue with the non-beta version of MS 8.0. I'm going to see if this really is a bug. I will let you know when I find something out. I did find how to decouple them. Just move them far away from each other. But then waveformGraph1 is really huge and goes off the control.
Message Edited by Sam R on 11-30-2005 04:21 PM
12-02-2005 02:05 PM
Ok so there is an anchor property that is part of the graphs. You need to set it to none and then you'll be able to not have the embedded graphs. I hope that is helpful.
12-02-2005 03:44 PM
12-06-2005 10:18 AM
There is a method in the code for the user control called: DAQmxUserControl1_Resize If you comment that method out it should be normal. I hope this is helpful.