Selecting lowest counter and sending binary output

This is a discussion on Selecting lowest counter and sending binary output within the C++ Programming forums, part of the General Programming Boards category; Part one: I have three counters. I need code that selects the lowest counter and increments this counter after it ...

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    1

    Selecting lowest counter and sending binary output

    Part one: I have three counters. I need code that selects the lowest counter and increments this counter after it sends a command to the corresponding digital output (to close a contact).
    Part two: I will be issued a point (1,2, or 3). This number will determine how many counters I need to select and how many digital outputs need to assert (to close a contact)
    Part three: This issued point will change. Once this point drops down I need to send a command to the corresponding digital output (to open a contact)


    I am using Subnet Solutions SSnet Explorer. This interface only has basic logic functions and math functions. I am trying to put together nested if statements but I am stuck

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Step 1 -> Announcements - C++ Programming
    Step 2 -> Announcements - General Programming Boards
    Step 3 -> Announcements - General Programming Boards
    When you can show us that you've made an effort (ie, you have code) then we can help.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 09-25-2011, 12:45 PM
  2. Trying to make this counter output something different
    By NinjaFish in forum C Programming
    Replies: 14
    Last Post: 02-16-2011, 04:13 AM
  3. Sockets... Sending Binary Data. Please help
    By avalanche333 in forum C++ Programming
    Replies: 16
    Last Post: 03-31-2007, 12:56 PM
  4. Replies: 1
    Last Post: 12-01-2005, 09:41 AM
  5. sending output from a command to file
    By smegly in forum C Programming
    Replies: 3
    Last Post: 05-19-2004, 11:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21