02-17-2013 10:54 PM
I'am posting one program . In this program I need to start a case on switching on the bulb but that's not happening . Can you find a solution for this if possible please help me
02-17-2013 11:40 PM
Please post your VI so that we can deal with it. Use "Boolean To (0,1) may help you.
But instead of trying solution in air, first send your VI.
Thanks
02-17-2013 11:53 PM
i send it in the next message .
02-18-2013 03:29 AM
A boolean can be wired direcly to a case structure which will then have a True and a False version. It's probably a simple problem as reading a control outside a loop, but send the vi and we'll see.
/Y
02-18-2013 03:37 AM
the program is this
02-18-2013 03:43 AM
Dont use Run continously.
So, what bulb, what's not happening, and what's supposed to happen?
/Y
02-18-2013 11:06 AM
Where to begin...
You're outer case structure makes no sense. It is obvious you are using the Run Continuously button. Don't! That button is for debugging purposes. Remove the outer case structure and replace it with a WHILE loop. Have the loop stop with your stop button.
A lot of your inner case structures are errors waiting to happen. You need to wire the error and VISA references through the false cases.
You FOR loop doesn't need anything wired up to the N. With the array autoindexing, that will determine how many loops will be done.
02-18-2013 09:53 PM
the button when I put it to on position the case loop never works and I don't know how to integrate for loop with case loop such that when click the button only the case loop will work otherwise the program will stop by the for loop.
02-19-2013 03:00 AM
@perumpadapu wrote:
the button when I put it to on position the case loop never works and I don't know how to integrate for loop with case loop such that when click the button only the case loop will work otherwise the program will stop by the for loop.
Which button? Read 5? Stop? Write 6?
/Y