Thread: Selecting lowest counter and sending binary output

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

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, 05: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, 10: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