11-07-2008 12:26 PM
Hello:
I want to create several steps
First ... add to numbrers ( and see the result in the front panel)
Then.... after a few seconds..... ( 5 for example)... the result of the the addition.... add it to other number.
But i want to see in the front panel... in steps.... fthe first addition... and see the result..... then the second addition... and see the result.... but when i do it....it shows me the two results at the same time.... I want like a slower execution... How can I create this???
11-07-2008 12:40 PM - edited 11-07-2008 12:40 PM
See the attached image. You need to add a wait function in between your two operations. I don't usually recommend using the flat sequence structure but since there is no better way to force the wait to occur in the correct place using data flow, the flat sequence is necessary.
11-07-2008 12:41 PM
11-07-2008 12:41 PM
11-07-2008 12:47 PM
Thanks... it works fine. I have another cuestion
I want to run my vi and I want a matrix prestablished... I mean I dont want it to be emtpy every time i run the program... How can I filll the matrix with certain values...thet when I run the program is allready filled???
11-07-2008 12:51 PM
11-07-2008 01:10 PM
sequences are evil
study the state machine design pattern and use the states as the steps in the sequence that way you can edit your sequence very easy
11-07-2008 01:19 PM - edited 11-07-2008 01:20 PM
11-07-2008 01:25 PM
all the more reason to use a "Wait" state in a state machine
you may have many places where you want to wait between execution steps and this way you can just pass a value to one timer instead of having X number of timers in your program
11-07-2008 01:26 PM
Hi: This is what I want to do with the matrix. Everything has to be shown in slow sequence like you told me before.
The goal is to implemet Hamming Coding.
1. Create a 4 bit long message ( done) from 0000 to 1111
2. "Create the Generation Matrix". I dont want to create the matrix per ce..... It has to be allready made...But I want to show it in the front panel. How can I fill this matrix or call it?? or do I have to call the values from excel ( if thast the case how do I doit?
3. Afterwrds, the 4 bit long message....an the generation Matrix are multiply.... and the the rows add themself in modulo 2 ( exclusive or)... the goal is to create te codeword......
I know haow to do the spets... 1 and 3.... but the thing is the G matrix... how to call it??? or fill it... wit the values I want....and then... start with the operations.