The configuration settings for the ELVISmx Digital Writer include inputs for selecting which digital lines to write to, what type of pattern to output, and what manual pattern to use. When using a manual pattern the configuration settings also provide push buttons for toggling, rotating or shifting the bits in the pattern.
The lines to write selection allows the user to select which lines to write to in the digital port on the side of the NI myDAQ unit. The available options are: 0-3, 4-7, and 0-7. Note that any digital lines that are being written to using the ELVISmx Digital Writer will be reserved while the digital writer is running, and will not be available to the ELVISmx Digital Reader, or any other program. To use the ELVISmx Digital Writer and Digital Reader at the same time, use lines 0-3 for one of the instruments, and lines 4-7 for the other.
The pattern drop down box allows for the use of a manual, ramping (0-255), Alternation 1/0’s, and Walking 1’s patterns.
The manual pattern option will output the pattern given in the Maul Pattern section, wich can be configured either by clicking the switches to toggle each bit individually, or by typing a hexadecimal value into the pattern number numeric control. While in the manual pattern mode, the Toggle button can be used to toggle of the bits being written by the digital writer. The rotate and shift buttons can also be used to effect the manual pattern, and will rotate the bits in the chosen direction, or shift the bits in the chosen direction while filling in with 0 values from the opposite end.
The ramp (0-255) pattern will continually change the digital outputs by counting up from 0. If all 8 bits are used, the pattern will count to 255. If only 4 bits are used, the pattern will count to 16 before starting at 0 again.
The Alternating 1/0’s pattern will alternate 1’s and 0’s through the bits of the output and then toggle the bits once. This results in the bits outputting the hexadecimal value A, followed by the value 5 on each of the 4-bits of the digital port. If the Digital Writer is being run continuously, the bits will continue to alternate between the hexadecimal outputs of A and 5.
The walking 1’s pattern will start with all of the digital lines being equal to zero, except the least significant digit. The Digital Writer will then move the single true value from the least significant digit toward the most significant digit one line at a time.