Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the system variable setting error in consecutive setting case #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CANoe/Python_CANoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def set_SysVar(self, ns_name, sysvar_name, var):
sys_namespace = systemCAN(ns_name)
sys_value = sys_namespace.Variables(sysvar_name)
sys_value.Value = var
time.sleep(1) # 等待1秒钟,以防止连续系统变量赋值情况下导致赋值失败的情况
# print(sys_value)
# result = sys_value(sys_name)
#
Expand Down Expand Up @@ -252,4 +253,4 @@ def OnChange(self,value):
# print(app.get_SysVar("mfl","vol_plus"))
#
# vol_plus.stop()
# vol_minus.stop()
# vol_minus.stop()