Feel The Code? | Feb. 21, 2010

techgeek.in's Avatar, Join Date: Dec 2009
Skilled contributor
1) paraport=digitalio('parallel','LPT1');
2) addline(paraport,0:3,'out');
3) pval=[0 0 0 1];
4) putvalue(paraport,pval);

carefully, notice the above sequence of codes. Find out the "platform" and "functionality" of the above codes?? Explanation of the functionality is needed for each lines of code.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Missed this question last time but approved now.
0
31415926's Avatar, Join Date: Feb 2010
Go4Expert Member
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
0
techgeek.in's Avatar, Join Date: Dec 2009
Skilled contributor
Quote:
Originally Posted by 31415926 View Post
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
yes, you r correct..
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
31415926, your profile has email address of moneybookers which is not registered and please accept the payment ASAP or else it will be canceled and the prize will go into some open source donation.
0
31415926's Avatar, Join Date: Feb 2010
Go4Expert Member
Please help me to donate the prize.
Thanks!
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by 31415926 View Post
Please help me to donate the prize.
Thanks!
What help you want?