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: 

Labview Basics

Hello. 

I'm new to labview.. I'm trying to reset the first call based on the this: 

http://forums.ni.com/ni/board/crawl_message?board.id=7124&message.id=991

 simple_1.PNG

please..  I'd like to ask what the simple that connected to the loop condition ?? , 

simple.PNG

many thanks in advance 

 

0 Kudos
Message 1 of 13
(3,318 Views)

That is a boolean constant.  (Newer versions of LabVIEW simplifed that to just show the True, or the False, not the fact that you can swap between them.)  In this case it is set for False.  It is also much more common nowadays for 1 run loops to have a True wired to a Stop condition terminal rather than a False wired to a Continue terminal.

Message 2 of 13
(3,312 Views)

That's a False constant.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 13
(3,311 Views)

Thank you so much ..

 

I treid to change it to false constant but it would do the job.. since it still first_time (the output is on even after first loop)

 

regards 

 

 

 

0 Kudos
Message 4 of 13
(3,305 Views)

What's the purpose of the loop at all?

check.png

 

(the output is on even after first loop)

Did you debug your VI? What's the input value?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 13
(3,300 Views)

@GerdW wrote:

What's the purpose of the loop at all?

check.png


The first time you read it after a Reset you want FirstTime to be true. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 6 of 13
(3,296 Views)

Hi.. 

 

It is to be used to initialize the initial conditions for sub vi .. only for first call 

regards 

 

 

0 Kudos
Message 7 of 13
(3,294 Views)

Hi Benomair,

 

used to initialize the initial conditions for sub vi .. only for first call

So when you want to initialize ONLY for first call you don't need all those additional stuff.

When you want to initialize based on a different condition you don't need the FirstCall? primitive…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(3,280 Views)

Hi GerdW
thanks ..
sorry it might be too simple (I'm new to Labview) .. but I don't know how to initialize the initial condition for sub vi that using formula node ..
in Matlab I used this code to do so

persistent X_hat;
if isempty(X_hat)
X_hat=[0.018 0 0.894]';
end


regards

0 Kudos
Message 9 of 13
(3,266 Views)

Perhaps you should show up your subVI and its caller so we have a better idea of what you are trying to accomplish.  We can offer better help then.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 13
(3,256 Views)