LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to Digital Port (8255)

You can just create a 1D array that is the same size as the Boolean array. If it's outside the for loop, it will get auto-indexed in the same way as the Boolean 2D array so each iteration can have it's own unique delay.
0 Kudos
Message 11 of 13
(580 Views)
Alright, I have created a 1D numeric array (again, in my hurry, I managed to type in 2D array when clearly it was a 1D array).

However, after placing it into a stacked time sequence, I still have some minor problems.

When I use the Highlight Execution function of LabVIEW, I notice that the Wait VI is reading each row of the array and executing the entire array in between each boolean iteration.

However, what I want is to have the first row of the numeric array to correspond with the first boolean iteration, the second row with the second iteration, and so forth.  

Message Edited by Anthony_Wong on 05-23-2006 12:14 PM

Anthony Wong
University of Toronto
Chemistry Department
0 Kudos
Message 12 of 13
(580 Views)
You've made it way too complex. You just had to put the time array outside the main for loop - not create a new one. Here's a modification. I used the Delay function instead of the Wait(ms) so there is dataflow and when the delay happens can be controlled. The Delay input is in seconds instead of ms so be sure to change the wait times.
0 Kudos
Message 13 of 13
(575 Views)