Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6501 如何把一脚设为高阻态?

有一个项目, 要随时控制一个引脚: 处于数字输出, 处于高阻态(HiZ) 如何处理? 

我尝试把这个脚设为AI状态, 给出错误提示: 

200430:
I/O type of the physical channel does not match the
IO type required for the virtual channel you are creating

 

我用的是VB6

DAQmxCreateTask("", taskHandle)
 DAQmxCreateAIVoltageChan(taskHandle, "Dev1/port/line0", "", DAQmx_Val_InputTermCfg_RSE, 0, 5, DAQmx_Val_VoltageUnits1_Volts, ByVal 0&)

 

另外, 如何随时 把这个脚 数字输出, 数字输入, 高阻断开?  实验中发现, 输出高时, 再去读时会自动把输出变为低.

0 Kudos
Message 1 of 1
(2,204 Views)