MATLAB !
1) Create a digital I/O object for parallel port LPT1.
2) add four hardware output lines (line IDs 0-3) from port 0.
3) pval is a binary vector [0 0 0 1], 1 is the MSB , so its decimal value is 8
4) write the data in pval which is [0 0 0 1] on to the hardware lines