Skip to content

Instantly share code, notes, and snippets.

@jj-github-jj
Last active February 13, 2022 16:05
Show Gist options
  • Save jj-github-jj/184a342b710b36112ecbfa06336e57ad to your computer and use it in GitHub Desktop.
Save jj-github-jj/184a342b710b36112ecbfa06336e57ad to your computer and use it in GitHub Desktop.
labview run active x
# !pip install pywin32
import win32com
labview = win32com.client.Dispatch("Labview.Application")
VI = labview.getvireference(vi_path)
print(f'Name: {VI.Name}')
VI.setcontrolvalue(control_name,f) # this works to set float values
s=(VI.getcontrolvalue(ind_name))
VI._FlagAsMethod('Run')
VI.Run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment