05-09-2013 09:30 PM
why the boolean around my washing machine wont keep blink?
05-09-2013 09:37 PM - edited 05-09-2013 09:39 PM
Interesting graphic on the washing machine.
You don't have any while loop around that part of the code that will keep it running.
Likewise, in the middle part of your VI, where the main power local variable is read right at the beginning of the program, then the appropriate case structure will execute (probably false unless you hit the power button before running your VI) and then it will never execute again because you don't have a while loop around that.
Why are you using a local variable of Main Power when the control terminal is right there just above it unused? Overall, it seems like you have used way too many local variables. Read Dataflow vs Local Variables and search the forums for the thousands of posts that discuss "race conditions".
05-09-2013 09:52 PM
hmm because i controlling the washing machine by using a remote control..which i have to make those disabled to make it not to work if the power button doesnt on..i cant go to the link that you given..can i know how to work the boolean around the washing machine? cause i created a new VI it shows working..but i put in this...it wont work
05-09-2013 10:00 PM
The link is to the LabVIEW Frequently Asked Questions part of the forum. There is no reason why you can't get to it. You can see the link at the bottom right of the LabVIEW message board page.
You need a while loop around that part of your code in order for it to run more than once, that is why it doesn't work.
I don't know what a remote control has to do with getting your VI to work properly. The fact is that your architecture needs to be reworked.
What you are trying to do seems very similar to one of the CLD exam practice projects, specifically the Car Wash example. I suggest going to the Certification board and look through the differnet Car Wash examples that people posted there. It should give you a clearer idea of how to build your application.
05-09-2013 10:09 PM
ok it works now...thanks alot for the clue 😃
05-10-2013 12:30 AM - edited 05-10-2013 12:48 AM
05-10-2013 12:57 AM - edited 05-10-2013 12:57 AM
@apok wrote:
Because it is set by the constant wired to the count terminal... Below your code is the same interpretation, just put the bools into a cluster. Hint: be careful to notice repeating algorithm...
This code is incorrect. Instead of "insert into array", you should use "replace array subset".
When using "insert into array" you create a boolean array with 13 elements, just to truncate it back down to a 12 element cluster a nanosecond later. This is extra work! When using "replace array subset", the array remains at 12 elements at all times.
05-10-2013 01:08 AM - edited 05-10-2013 01:10 AM
altenbach wrote:This code is incorrect. Instead of "insert into array", you should use "replace array subset".
When using "insert into array" you create a boolean array with 13 elements, just to truncate it back down to a 12 element cluster a nanosecond later. This is extra work! When using "replace array subset", the array remains at 12 elements at all times.
wow...you are right, how could i have miss that...it is getting late, time to go to bed
05-10-2013 02:56 AM
@RavensFan wrote:
The link is to the LabVIEW Frequently Asked Questions part of the forum. There is no reason why you can't get to it. You can see the link at the bottom right of the LabVIEW message board page.
Also having trouble accessing the LabVIEW FAQ page from your link (see Attached) and can see no link at bottom right of LabVIEW message board page (??)
Ken
05-10-2013 03:08 AM
The FAQ pages are under development and not public.