NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

继电器控制问题

现在想通过继电器来控制一个电磁阀的开关,不知道怎么去通过labview编程来控制继电器,看见NI里面的带的一个例程 switch device , topology name ,指的什么啊 不大明白 希望高手指点下
战神
0 项奖励
1 条消息(共 4 条)
5,451 次查看

You would need Digital I/O instead of switch(es). 

 

This article may give you some useful information about using Digital I/O for Test, Control, and  Design

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
2 条消息(共 4 条)
5,445 次查看
数字输出.bmp.jpg我要的控制的是 当我点击开始采集时  通过输出一个信号继电器闭合 然后打开电磁阀 使电磁阀工作 不知道通过我上面得程序 可以实现不 多谢指教
战神
0 项奖励
3 条消息(共 4 条)
5,442 次查看

The CASE, with DAQmx Write in it, will not be executed at when the control boolean is switched to FALSE. And, when it is TRUE, the CASE is continuously being executed...

 

You need to check for Boolean value change (by shift-register or by event). When boolean value is changed, it executes the "TRUE" CASE and the last/ latest boolean value is to set the digital line using DAQmx Write. Likewise for when boolean is changed to FALSE.

 

See attached sample of simple boolean value change and action... for your reference 😉

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
4 条消息(共 4 条)
5,434 次查看