LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a command automatically sending

 


@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.

 

0 Kudos
Message 21 of 26
(1,167 Views)

the missing subvi have benn poseted in the first page, you can find that

0 Kudos
Message 22 of 26
(1,155 Views)

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..)

0 Kudos
Message 23 of 26
(1,137 Views)

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.

 

22212iC9D8F64BD1B802F3

- tbob

Inventor of the WORM Global
0 Kudos
Message 24 of 26
(1,128 Views)

Hi my labview version is version 8.6,  i cant open your attach, can you attach a 8.6 version

0 Kudos
Message 25 of 26
(1,104 Views)

Here it is in 8.6

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 26 of 26
(1,086 Views)