08-23-2010 09:30 AM
@lilight wrote:
Hi
i have tried use your suggestion, but the disgram is wrong can you check it for me?
You didn't try anything of what I told you.
08-23-2010 10:46 AM
the missing subvi have benn poseted in the first page, you can find that
08-23-2010 04:34 PM
Untitled 21.vi does not have anything connected to its terminals.
What ouput do you want to wire to the shift register?
You need to wire the terminals first.
And probably re-read smercurios advice.. (it's been a busy day / no time to read the entire thread..)
08-23-2010 05:21 PM - edited 08-23-2010 05:22 PM
I've been following this thread and I must say that you have not studied any Labview tutorials at all. You also have not followed anyone's advice. I've decided to help you anyway. Just one time only unless you make an effort to learn Labview on your own.
Study the following picture. The serial port is initialized ONE TIME ONLY, at the beginning. There is an event structure to capture the boolean buttons value change. Inside the event, you place your stripped down subvi. The subvi only contains code to create the strings you want to write to the serial port. There is no serial port functions in the subvi. You need to create a subvi for each one of your boolean buttons. The output of the subvi is a string array with 3 elements. Feeding this into the for loop will cause the loop to run 3 times, one for each element. The code inside the loop will write, delay, then read. No need to repeat the code 3 times, the loop will do that. The loop is inside a False case so that it only executes if stop is not pressed. There is an event case for the stop button. When pressed, the loop will stop.
Now you need to create the other subvi's for your string array and create an event case for each boolean button. Put the appropriate subvi inside each event. I've created one subvi for you as a start. It is attached. You can do the others.
08-24-2010 07:28 AM
Hi my labview version is version 8.6, i cant open your attach, can you attach a 8.6 version
08-24-2010 01:31 PM