Vector CANoe CAPL系列相关文章导览,下面链接可直接跳转
Vector CANoe VT System系列板卡文章导览,下面链接可直接跳转
文章目录
引言
本章节继续聊VT2820通用继电器板卡的功能,板卡详细内容见VT_System_Manual_EN.pdf,内容为个人理解,如有错误,欢迎指正
The VT2820 provides 20 relay channels. These can be used for example to switch various signal paths in a test system, to realize a switch matrix, or to generate errors like short-circuits.
终于不长了~~~
VT2820 提供 20 个继电器通道。例如,这些通道可用于切换测试系统中的各种信号路径,实现切换矩阵,或产生短路等错误。
前后面板图
注意
channel 1-12功能一致(2个接线口+2个bus bar接口)
channel 13-20功能一致(3个接线口)
Usage
channel 1-12 - 常开继电器
channel 13-20 - 转换继电器
接插件定义
看手册9.4章节
Technical Data VT2820
手册中都有,这里再贴一下
General
Relays
Fuses
CAPL实例
VT System Configuration
连接板卡,不知道咋操作的,看这里里面有详细说明
VT System Control
只要能识别板卡即可,该板卡无需任何配置~~~
System Variables
上面步骤搞定后,就会在系统变量里注册如下变量,用于CAPL或者Panel调用
制作Panel
编写CAPL脚本
不需要写脚本啦~~,操作系统变量即可实现继电器的控制切换了,当然根据业务场景自动化的时候在CAPL里进行继电器的使能与关闭操作即可,如下:
// channel 1
@sysvar::VTS::GPRelay_ch1::Relay = 0; // deactivated
@sysvar::VTS::GPRelay_ch1::Relay = 1; // activated
@sysvar::VTS::GPRelay_ch1::RelayBusBarA = 0; // deactivated
@sysvar::VTS::GPRelay_ch1::RelayBusBarA = 1; // activated
@sysvar::VTS::GPRelay_ch1::RelayBusBarB = 0; // deactivated
@sysvar::VTS::GPRelay_ch1::RelayBusBarB = 1; // activated
// channel 13 注意区别通道功能!
@sysvar::VTS::GPRelay_ch13::Relay = 0; // deactivated
@sysvar::VTS::GPRelay_ch13::Relay = 1; // activated
打开Panel界面测试即可
项目实例
如有问题,请关注,点赞,收藏,后台私信~~~
当前使用场景也比较单一,文中可能有部分内容未提及,或有误,请指出,谢谢!
公众号
欢迎关注公众号,加入专业技术交流。