Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with USB-6009 and sample aplications in VB

Hi,
 
I'm new to ni devices.
I had purchased an USB-6009 device and install it. I can run MAX, test, create and run task's without problems.
I'm using DAQMX base ver. 8.0 (came with the device).
 
But when I run the VB6 samples I allways get:  "Error: - 200077 Requested value is not a supported value for this property."
 
The error rises here:
 
DAQmxErrChk DAQmxCfgSampClkTiming(taskHandle, "OnboardClock", frequencyTextBox.Text, DAQmx_Val_Rising, _
                    DAQmx_Val_AcquisitionType_FiniteSamps, CLng(samplesPerChannelTextBox.Text))
 
 
I read somewhere that USB-6009 as no "onboardclock"...  But, in MAX in can configure the clock to "internal" without problems....
 
Can someone help me please...
 
Thanks in advance
 
Joaquim
 
 
 
 
 
   
0 Kudos
Message 1 of 5
(10,006 Views)

Hello Joaquim,

The USB-6009 has an onboard clock. The clock is based on a 24 MHz oscillator, but you can acquire above 48 kS/s for one channel (see USB-6008/6009 User Guide and Specifications).
Your error could come from the fact that you enter a rate greater than 48 kHz.

Regards,

0 Kudos
Message 2 of 5
(9,971 Views)
I did not see where you mentioned which example is causing problems.  If the example is performing any hardware-timed analog output, that will be a problem with the USB-6009, as there is no clock for the output.  I believe that some of the examples perform both ai and ao, so the name of the specific example would be helpful.

-tuba
Message 3 of 5
(9,891 Views)
When I tested example programs running under Visual Basic 6.0 with the software provided with a USB-6009 an error occurr: 200077.
It happens with input and output testing programs.
No errors were observed using Measurement & Automation Software provided with the card.
 
Please, tell me the reason of the error message when using the software examples YOU provided with the product in order to write software without errror messages.
 
 
0 Kudos
Message 4 of 5
(8,854 Views)

Hi,

Have a look at this knowledge base: Why do I Get Error -200077 with the Example Programs for Visual Basic 6.0 and DAQmx? I hope it is helpful,

Ana P
National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(8,833 Views)