Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

(Digital Input Output) Asking about the "pattern' of "write to digital port.vi". can anyone help me ?

hello guys.

i'm using "write to digital port.vi" to create some digital output to my hardware. that vi is in the daq traditional. there is input on that vi, "pattern". can anyone explain to me why it is controlled by number ? and how does it work ?  i have read the help, but i can't find information that can help me. thx.. 🙂

0 Kudos
Message 1 of 2
(2,839 Views)

As expected, this VI writes a given number of bits to a port (--> 8 if port with is set to 8).

 

The pattern specifies the states of these bits (--> lines of the port).

 

I suggest to change the display format of the pattern control to binary or hexadecimal to get a more comprehensive display. Show the radix to avoid any mistake.

 

For example :

all 8 lines to TRUE :

  • decimal = 255
  • binary = 11111111
  • hex = FF

 

The binary display format may be the most comprehensive because it shows the state of every single line of the port.

0 Kudos
Message 2 of 2
(2,835 Views)