Already posted this message in another board, but this board is more appropriate.
Using VB in Excel2002 to do the following, I'm using a PCI-6220, Analog inputs:
Created a task for reading a single channel, in Volts
keep getting -200378: DAQmx Error CustomScale Does Not Exist
when I start my task.
No matter what I tried (until now)
ReturnValue = DAQmxCreateAIVoltageChan( _
TaskHandle, channel, ChannelName, TerminalConfig, MinVal, MaxVal, DAQmx_Val_Volts, ByVal 0&
===> Returnvalue is 0
ReturnValue = DAQmxCfgSampClkTiming(TaskHandle, _
ByVal 0&, SampleRate, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_ContSamps, SampsPerChan)
===> Returnvalue is 0
ReturnValue = DAQmxStartTask(TaskHandle)
===> Returnvalue is -200378
One addition to make: Created my task in MAX, loaded this by my application, and this worked wel.
At least this gives me the chance to continue creating my application,
but this is definetly not the way the final application will work.
Any help is would be appreciated, I'm stuck....
Johannes
ps.:
TaskHandle is the value received when creating the stask (closing of task works)
channel = "Dev2/ai0", as it is the second device
ChannelName I created a unique name
TerminalConfig = DAQmx_Val_Diff or DAQmx_Val_RSE (resp. 10106 or 10083), tried both
MinVal = -10 (tried other values as well)
MaxVal = 10 (tried other values as well)
DAQmx_Val_Volts = 10348