Go4Expert

Go4Expert (http://www.go4expert.com/)
-   $1 Daily Competition (http://www.go4expert.com/contests/daily-competition/)
-   -   Feel The Code? | Feb. 21, 2010 (http://www.go4expert.com/contests/feel-code-feb-21-2010-t21039/)

techgeek.in 18Feb2010 22:51

Feel The Code? | Feb. 21, 2010
 
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.
:crazy::crazy::crazy:

shabbir 21Feb2010 20:00

Re: Feel The Code? | Feb. 21, 2010
 
Missed this question last time but approved now.

31415926 22Feb2010 07:39

Re: Feel The Code? | Feb. 21, 2010
 
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

techgeek.in 22Feb2010 14:13

Re: Feel The Code? | Feb. 21, 2010
 
Quote:

Originally Posted by 31415926 (Post 64574)
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..:)

shabbir 22Feb2010 17:30

Re: Feel The Code? | Feb. 21, 2010
 
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.

31415926 22Feb2010 19:02

Re: Feel The Code? | Feb. 21, 2010
 
Please help me to donate the prize.
Thanks!

shabbir 23Feb2010 10:49

Re: Feel The Code? | Feb. 21, 2010
 
Quote:

Originally Posted by 31415926 (Post 64598)
Please help me to donate the prize.
Thanks!

What help you want?


All times are GMT +5.5. The time now is 13:52.