LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a dynamic digital timing sequence

I am trying to create a VI that can be used to turn on and off 3 digital ports acording to a user selectable timing scheme. The user will enter the on off sequence for each input. I then want the program to run the full sequence. I was going to make a loop that was updated every second with the new signal positions but I can't get an array built from the timing sequence, Any help...
0 Kudos
Message 1 of 5
(2,834 Views)
There are a number of possibilities.
Here is one, attached as example. You could just duplicate (tri) the timing loop to control your three outputs.
This solution can be improved : the stop button do not act immediately, and wait until the running tempo is terminated.
I have added, just for the fun, another way of inputting the timing values, using a string.
Additional comment : you are overusing attributes nodes. Except for specific cases (for example when you want to modify a front panel indicator/control from a sub-vi), use local variables instead.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 5
(2,834 Views)
Thanks for the input, and the advice, I am self taught so I am figureing it out as I go.

I still have the problem that my outputs are not updated... I modified the file so it is like what I need, I need the led array to change with the program, the led's will be replaced with digital output.

Thanks
0 Kudos
Message 3 of 5
(2,834 Views)
Nevermind I got it, I replied before I had coffee in me and I could think

Thanks for the help
0 Kudos
Message 4 of 5
(2,834 Views)
Aahh... coffeeeeee...
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 5
(2,834 Views)