Feel The Code? | Feb. 21, 2010

Skilled contributor
18Feb2010,22:51   #1
techgeek.in's Avatar
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.
Go4Expert Founder
21Feb2010,20:00   #2
shabbir's Avatar
Missed this question last time but approved now.
Go4Expert Member
22Feb2010,07:39   #3
31415926's Avatar
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
Skilled contributor
22Feb2010,14:13   #4
techgeek.in's Avatar
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..
Go4Expert Founder
22Feb2010,17:30   #5
shabbir's Avatar
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.
Go4Expert Member
22Feb2010,19:02   #6
31415926's Avatar
Please help me to donate the prize.
Thanks!
Go4Expert Founder
23Feb2010,10:49   #7
shabbir's Avatar
Quote:
Originally Posted by 31415926 View Post
Please help me to donate the prize.
Thanks!
What help you want?