Hi everyone,
I'm trying to create a task which uses DAQmxCreateAIVoltageChan in Visual Basic 6!
Private Declare Function DAQmxCreateAIVoltageChan Lib "nicaiu.dll" (ByVal taskHandle As Long, ByVal PhysicalChannel As String, ByVal nameToAssignToChannel As String, ByVal TerminalConfig As DAQmxTerminalConfig, ByVal minVal As Double, ByVal maxVal As Double, ByVal units As DAQmxUnits, ByVal customScaleName As String) As Long
Public Enum DAQmxTerminalConfig
DAQmx_Val_Cfg_Default = -1
DAQmx_Val_RSE = 0
DAQmx_Val_NRSE = 1
DAQmx_Val_Diff = 2
DAQmx_Val_PseudoDiff = 3
End Enum
Public Enum DAQmxUnits
DAQmx_Val_Volts = 0
DAQmx_Val_FromCustomScale = 1
End Enum
I am getting error code : -200077 : Requested value is not ....
I guess this comes from ByVal customScaleName As String where in ANSI C I have to asign NULL. Can someone tell me what I have to write in Visual Basic, I have tried vbnullstring, vbnullcharacter, 0 ,"" chr(0) ...., Null , Nothing etc.
A little shorter: What is "const char NULL" (ANSI C) in Visual Basíc!
Maybe there is another problem, but don't see one.
Thanks,
Holger