LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prompt User in a Parallel Process

Solved!
Go to solution

Hello,

 

I'm developing a software where I constantly read data from an equipment. In this software there is a command that requires a password to be input. I was trying to use the Prompt User for Input to receive the password from the user. However when the Prompt User screen pops up, my software stops reading the data from the equipment until the user inputs the password. I don't want that. I still want to read the data from the equipment while the user is inserting the password.

 

Is there a way to execute the Prompt User for Input in parallel process while executing the read data part? Is there another way to request a password from the user?

 

Thank you very much for helping!

0 Kudos
Message 1 of 6
(2,904 Views)
Solution
Accepted by topic author WKAriyoshi

Hi Ariyoshi,

 

LabVIEW is based on DATAFLOW. When there is no data dependency between code segments then they run in parallel.

 

Put your password dialog into a parallel loop...

Best regards,
GerdW


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

@WKAriyoshi wrote:

Is there a way to execute the Prompt User for Input in parallel process while executing the read data part? Is there another way to request a password from the user?


Executing these tasks (reading from instrument AND prompting user for inputs) in parallel loops can solve your problem instantly, if you can share the code, one can pin point what & where exactly changes are required or parallel loop can be included (along with any other changes which might be required).


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 6
(2,894 Views)

Thanks for the fast reply, GerdW.

 

I'm trying to find some examples to learn how to create these parallel loops. Can you send me some links about it?

0 Kudos
Message 4 of 6
(2,892 Views)

Hi Asriyoshi,

 

check the entry "Example finder" in the help menu of LabVIEW...

Best regards,
GerdW


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

After some research over the net, I found some examples and learned how to create an average loop process.

 

Thanks for the help.

0 Kudos
Message 6 of 6
(2,871 Views)