LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pre-programmed sequence for data bits on parallel port.

I've found and made a bunch of vis that allow for interactive high/low control of the 8 data bits on the parallel port. I want to control each pin with a pre-programmed pattern of bits. Any ideas?
0 Kudos
Message 1 of 4
(2,889 Views)
I would suggest that you create U8s that set the specific pin high. For example 00000001 to set the last pin high.

Now since you already have VIs to write 8 bit numbers you can just create an array of them and then call you writer VIs in a for loop.
0 Kudos
Message 2 of 4
(2,889 Views)
Thanks for your suggestion. What is a U8? How do I create an array of VI's? Im not exactly sure what you mean.
0 Kudos
Message 3 of 4
(2,889 Views)
A U8 is an unsigned 8 bit number. To create one place a number control down on the front panel. Right-click on it and select Representation>>U8. To create an array of U8s you place an array control down, and then drag the above numeric into the array shell. You now have an array of U8s, which you can expand and place things in it.
0 Kudos
Message 4 of 4
(2,889 Views)