Feel The Code? | Feb. 21, 2010

Discussion in '$1 Daily Competition' started by techgeek.in, Feb 18, 2010.

  1. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    http://www.techgeek.in
    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:
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Missed this question last time but approved now.
     
  3. 31415926

    31415926 New Member

    Joined:
    Feb 21, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  4. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    http://www.techgeek.in
    yes, you r correct..:)
     
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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.
     
  6. 31415926

    31415926 New Member

    Joined:
    Feb 21, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Please help me to donate the prize.
    Thanks!
     
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    What help you want?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice