Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2147

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

$
0
0

有一个项目, 要随时控制一个引脚: 处于数字输出, 处于高阻态(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&)

 

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


Viewing all articles
Browse latest Browse all 2147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>