LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a sequence structure to the true case of the case loop

i 'am trying to run a motor which takes the commands as three ascii words of on byte length. I need this motor to function when the case is always true. So I added sequence(stacked) loop  inside the case loop with each sequence carry a byte length word. But finally case loop shows a error that selector terminal is not connected. But it is connected as true or false. what I have to do run the program in the way I wished. Please reply 

0 Kudos
Message 1 of 20
(3,072 Views)

Post your vi please.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 20
(3,071 Views)

Yes, please post your code. Also, I doubt that you need a sequence structure. You should be able to dictate the order of operation by using data flow. LabVIEW is a data flow language. In the most basic case you achieve the necessary data flow using the error out and error in.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 20
(3,042 Views)

I put sequence loop and tried then it shows case loop have a missing selector value . that's the problem I 'am facing

0 Kudos
Message 4 of 20
(2,996 Views)

You forgot to attach your code to your last message.

0 Kudos
Message 5 of 20
(2,989 Views)

ok i will sent

0 Kudos
Message 6 of 20
(2,987 Views)

Hi 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 7 of 20
(2,971 Views)

I'm sure it is in LabVIEW Basics or the tutorials.  A node can't run until it has all of its inputs.  If one of those inputs is an error wire that comes from another function, then by definition of dataflow, the node can't execute until the function supplying the data on that wire completes.

Message 8 of 20
(2,968 Views)

Hi 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 9 of 20
(2,961 Views)

@Ranjeet_Singh wrote:

Hi 


You are generally better off using a more robust architecture like a state machine than using sequence structures. Sequence structures are very inflexible. Once you enter it you must execute every frame. Also you cannot exit early if you needed. A state machine is much more flexible and easier to maintain. Sequence structures are very rarely required when you use good data flow and good design patterns.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 10 of 20
(2,933 Views)