LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we automate a keypress ?

2023-03-01_14h35_57.png

I am new to labview and at my new company we have a labview model with which we manually can control our machine software.
Does anyone know if we can automate the button presses as you see in the example to automate our testing?

0 Kudos
Message 1 of 4
(811 Views)

Hi twdi,

 


@twdi wrote:

Does anyone know if we can automate the button presses as you see in the example to automate our testing?


Technically: yes, you can. Use tools like AutoIt

 


@twdi wrote:

I am new to labview and at my new company we have a labview model with which we manually can control our machine software.


The better option should be to write an automated test procedure, maybe in LabVIEW.

I hope your LabVIEW "model" (you better call them VIs) is already written as state machine or producer/consumer scheme, so you could easily create your automated procedure…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(799 Views)

if you are using an event structure, you can write a TRUE or FALSE value to the Value (signaling) property node of a given boolean control. Assuming there is an event for the control, this will trigger that event. 

 

https://www.ni.com/docs/en-US/bundle/labview/page/lvprop/ctrl_value_signaling.html

 

https://forums.ni.com/t5/LabVIEW/How-to-use-quot-Value-signaling-quot-for-boolean-latch-button/td-p/...

 

On that second link, pay attention to the part about latching. It's important!

0 Kudos
Message 3 of 4
(797 Views)

I don't really know what a "LabVIEW model" is. Are these build executables? Are these test panels or example code of some third party drivers? Do you have access to the code? Do you know LabVIEW basics?

 

LabVIEW is a complete programming language and you can do anything. Anything! You could write a new top-level program that has a full featured UI for all the automation tasks you possibly need.

0 Kudos
Message 4 of 4
(754 Views)