Jump to content

# Projects seeking Programmers

If you are in need of a paid programmer to write your Unitronics’ project, post here to look for someone in your area.
**Disclaimer: Unitronics bears no responsibility. This is just a place for people to find each other**

## 17 topics in this forum

• 7 replies
• 145 views

• 2 replies
• 45 views

• 1 reply
• 87 views

• 1 reply
• 69 views

• 1 reply
• 138 views

• 1 reply
• 164 views

• 3 replies
• 805 views

• 0 replies
• 781 views

• 0 replies
• 286 views

• 1 reply
• 426 views

• 0 replies
• 473 views

• 3 replies
• 538 views

• 0 replies
• 404 views

• 0 replies
• 395 views
15. #### craft brewing automation

• 5 replies
• 2,669 views

• 3 replies
• 993 views
17. #### looking for someone to write a small "starter" program for me

• 3 replies
• 1,342 views
• ### Member Statistics

5,306
Total Members
501
Most Online
Newest Member

Joined

• 8
• 3
• 8
• 0
• 0
• ### Who's Online (See full list)

There are no registered users currently online

• ### Posts

• Think back to your youth to when you took algebra.  Hopefully you took algebra.  And you may be still in your youth. A linear block is just that - a line equation.  It creates a unique Y for each X. For your application I chose a timebase of one minute, so your entire x axis is 180.  Make a one minute timer to increment an MI every minute to feed the X value of the block.   So X1 = 0, X2 = 180 , Y1 = 0, Y2 = 1000. Let us know if you still don't understand how I got the values for the Linear block. Your homework now is to implement the above into a program and post it here with any more questions you have.  Joe T.
• For clarity of numbers, have a look at my calculator from here: http://forum.unitronics.com/topic/3540-linearization-calculator-for-all/ Play with numbers as appropriate and watch the result.  The idea for ramping is to relate the time elapsed to the desired temperature at that elapsed time, and then control heaters appropriately to match the desired temp. cheers, Aus
• Do you get a status for the drain valve? If not you could just start calculating flow when the tank volume changes by a certain amount. If you get feedback from both valves I would just do something like record the time it takes for each 1% level change when a valve is open. You can then just do: flowrate = (1% tank_volume)/(delta_time) I guess it mostly depends on what you want to use the measurement for. It also sounds like it's either only filling or draining. If both the fill and drain valve can be open at the same time you could have a situation where you're filling at 4 GPM and draining at 4 GPM and calculate a flow rate of 0 GPM.
• @dtwbb - Ausman is not a Unitronics employee.  He, I, and most of us on the forum are volunteers answering these questions out of the goodness of our hearts.   Please look at the top of this web page -    If you click there you will be directed to actual real and true Unitronics Support. You can also send your request to support@unitronics.com. You can also contact the the distributor you bought the product from and ask them to help. Joe T.
• Trying to create C function to convert a String ASCII to upper case. This is what I tried and it does not work: static void PrefixToUpper(volatile char* Prefix, int PrefixLen) {     // User code starts below this comment     for (int i  = 0; Prefix[i] != '\0' ; i++)         {         if(Prefix[i] >= 'a' && Prefix[i] <= 'z')                 {                     Prefix[i] = Prefix[i] - 32;                 }         }     // User code ends above this comment } // User code starts below this comment Tested the code in C compiler and it runs correctly: static void PrefixToUpper(volatile char* Prefix) {     // User code starts below this comment     for (int i  = 0; Prefix != '\0' ; i++)         {         if(Prefix >= 'a' && Prefix <= 'z')                 {                     Prefix = Prefix - 32;                 }         }     // User code ends above this comment } int main()     {    char str[] = "hmh00234";         printf("String input: %s\n", str);    PrefixToUpper(str);    printf("String output: %s\n", str);    }
• ### Blog Entries

×

• Leaderboard
• #### Support

×
• Create New...