Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   case statement starting state (http://www.chiefdelphi.com/forums/showthread.php?t=83096)

wolfin1a5c 19-02-2010 16:31

case statement starting state
 
hi quick question in labview the case statement starting state is set to what? true or false. any quick help would be awesome :D

Joe Ross 19-02-2010 16:34

Re: case statement starting state
 
LabVIEW is a data flow language. So, to find the answer, follow the data. Look at what you have connected to the selector terminal. Whatever that starts at, the case statement will start at. Nothing will execute inside the case statement until all the data from outside the case statement is ready.

wolfin1a5c 19-02-2010 16:39

Re: case statement starting state
 
1 Attachment(s)
i know it is determined by that... well maybe this will help
i have a switch that once it is on then it stays on until the robot turns off so here is a picture

Omar 19-02-2010 17:44

Re: case statement starting state
 
The real question is ...
What comes out of the Feed back node the first time?

With nothing wired into the init node (the small box on the bottom with the green dot) it will default to the default value for Boolean which is False.

So if your Floating point IS equal to zero (False) the False case will run.
If you Floasting point IS Not equal to zero (True) then the True case will run.

Then depending what is in your True (mainly what is feed out of the True case) if it is a True then that would latch the boolean to trun even if your Floating becane NOT Not Equal to zero.

What is it that you are trying to do?

Omar 19-02-2010 17:50

Re: case statement starting state
 
1 Attachment(s)
If all you have in your True case is a True out,
you do not need the case structure.


All times are GMT -5. The time now is 11:02.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi