Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6008 in VB6; 200077 error Measurements: Requested value is not a supported value for this property

Hi,

 

I am using usb-6008 in VB6 (with all services packs) in XP and I have this error when using the analog input example that shipped with NiDAQmx 8.9

 

I searched the forum for this problem with no luck. I did find 200077 errors reported.

Following what I read in similar threads with this type of error I tried to use the autocomplete function in VB6 to rewrite the statement that gives the error with no luck.

In TestPanels application, the board works without error although the measured voltages don't seem right. I am measuring sinals with 5 volt amplitudes and 100 Hz.

 

This is the statement that raises the error

'  Add an analog input channel to the task.
Statment 1 (came in NI DVD)

    DAQmxErrChk DAQmxCreateAIVoltageChan(taskHandle, physicalChannelTextBox.Text, "", DAQmx_Val_Cfg_Default, minValueTextBox.Text, maxValueTextBox.Text, DAQmx_Val_VoltageUnits1_Volts, "")

Statment2 (rewritten by me using autocomplete) 

2-   'DAQmxErrChk DAQmxCreateAIVoltageChan(taskHandle, physicalChannelTextBox.Text, "", DAQmx_Val_InputTermCfg_Diff, minValueTextBox.Text, maxValueTextBox.Text, DAQmx_Val_VoltageUnits2_Volts, "")

 

the physicalchannel indicated in the textbox is "Dev1/ai0"

 

Any help is greatly appreciatted

JMSerra

0 Kudos
Message 1 of 2
(3,332 Views)

Hi,

 

I just found the answer by looking also for measurement studio in VB6 and usb-6009 which is simular to my board.

The answer (maybe useful also for other people) is the regional settings!

In Europe we often use a comma instead of a point for the decimal separator

 

I saw this link

 

http://digital.ni.com/public.nsf/allkb/0332E1EE7081091D862570360030C9F4?OpenDocument

 

from

Ana P
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(3,330 Views)