From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring Current Sub VI doesn't work

Solved!
Go to solution

Hi everyone,

I'm new to labview and I'm trying to solve my programm without express VI's. Now I would like to make a sub-VI for the current measurement. The sub-VI itself works and I get values from it but if I call the sub-VI in another VI I don't get any values.

I hope you can help me.

Thank you

 

Greatings

Eric

Download All
0 Kudos
Message 1 of 4
(3,062 Views)

Hi Valve,

 

THINK DATAFLOW!

 

You get values from a subVI, when it finishes execution. Your subVI needs to get stopped by a button before it finishes execution. This is very basic LabVIEW stuff!

Again: THINK DATAFLOW!

Best regards,
GerdW


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

Hi GerdW,

 

first of all, thanks for your quick reply.

This means I have to stop the while-loop of the Sub-VI or how can I stop the Sub-VI otherwise? I'm sorry for my bad knowledge. As I told I'm totally new to LabVIEW or any other programming software except Siemens.

 

Greetings

Valve 

0 Kudos
Message 3 of 4
(2,991 Views)
Solution
Accepted by topic author Valve

Hi Valve,

 

as easy as it is: don't use any while loop in the subVI!

 

Other option:

Learn LabVIEW, and learn about producer-consumer scheme. Then use a queue to send data from DAQ loop to UI display loop…

Best regards,
GerdW


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