Search:

Type: Posts; User: knik653

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    14,519

    Can you please provide me with an example of how...

    Can you please provide me with an example of how to use that function in junction with ping?
  2. Replies
    1
    Views
    3,933

    System ping Linux questions

    System ping Linux questions


    I am trying to write a function to do a ping on a known IP address and then parse the output to see if "1 packet transmitted, 1 received..." is printed.

    I am new...
  3. Replies
    3
    Views
    14,519

    System ping Linux questions

    I am trying to write a C++ function to do a ping on a known IP address and then parse the output to see if "1 packet transmitted, 1 received..." is printed.

    I am new to this kind of programming...
  4. Replies
    18
    Views
    17,748

    I apologize for not getting it. Based on your...

    I apologize for not getting it. Based on your code, how do you know which value is the oldest to replace?
  5. Replies
    18
    Views
    17,748

    This is what I need to do and I get one value at...

    This is what I need to do and I get one value at a time.

    /* if first time /
    * set all array values to current value
    * return average equals to current value
    */

    /* else
    * replace...
  6. Replies
    18
    Views
    17,748

    Any hints on how to keep track of the oldest?

    Any hints on how to keep track of the oldest?
  7. Replies
    18
    Views
    17,748

    But don't you have to rotate the the other...

    But don't you have to rotate the the other values?
    I having a hard time wrapping my mind around this.
    I get to read in one value at a time
  8. Can I store a decimal value in memory as shown below?

    I have successfully stored hex values to memory using the method below and wanted to know if I can store decimal values as well.
    Thanks.



    *(int*)(0xeff000040) = 405;
  9. Replies
    18
    Views
    17,748

    So I got a little bit more information. It should...

    So I got a little bit more information. It should be a running average will each time a new value is read in, an average is calculated on the last 5 readings, by replacing the oldest value read in....
  10. Replies
    18
    Views
    17,748

    Trying to calculate a running average

    I am trying to figure out how to keep a running average of the last 5 temps read in. I don't know how/where to reset my counter to 0 or increment it? Will something like the code below work to keep a...
  11. Thank you, that was very helpful.

    Thank you, that was very helpful.
  12. Sorry the type is not an issue, and that was my...

    Sorry the type is not an issue, and that was my mistake. They call be floats. The basic jist is I need to calculate the result of taking two numbers x and y and making the result x.y.
  13. My issue is this: int convert ( int x, int...

    My issue is this:



    int convert ( int x, int y)
    {
    int result;

    // result = x.y; <-- this is what I need to compute
  14. Simple problem, at least I think it should be simple

    It's been a long time since I have written code and need a bit of help.
    If you have two number x and y, and you want x to be the whole number and y to be the decimal, x.y, how would you code that in...
  15. Replies
    6
    Views
    4,125

    Jim, I am not looking just to print it. Once I...

    Jim, I am not looking just to print it.
    Once I store the value as a decimal into another variable, I need to be able to do comparisons of the new decimal value against other decimals.
  16. Replies
    6
    Views
    4,125

    Yes, that is correct. The number will always have...

    Yes, that is correct. The number will always have digits only/ never characters. Any suggestions on the implementation of the routine?
  17. Replies
    6
    Views
    4,125

    Conversion Question

    How can I convert an in int stored in hex such as
    int x = (0x2710); to decimal 2710?

    For example, I want to set another variable
    x= y, but y would be decimal and equal to 2710.

    I have...
  18. Starting over - Hopefully just a quick questions about C

    First off, my thanks for those who responded to my other post and advanced apologies for the "messiness" that happened with my first post.

    Now given that, I am have reduced my original problem to...
  19. Replies
    11
    Views
    2,272

    I wasn't able to further edit my last post, so I...

    I wasn't able to further edit my last post, so I am posting another one here with 2 additional questions ( as another design change was just mentioned to me) and the list will be in ASCII format. If...
  20. Replies
    11
    Views
    2,272

    There is no formal requirements doc/ assignment...

    There is no formal requirements doc/ assignment sheet.

    The basic summary is that I will be reading a int value from memory (using a pre-exisiting function where I pass in the memory address of...
  21. Replies
    11
    Views
    2,272

    the prototype for the function is as follows: ...

    the prototype for the function is as follows:

    memory_read_function ( uint32_type start_address,
    uint32_type words_to_read,
    uint32_type...
  22. Replies
    11
    Views
    2,272

    My apologies for the duplicate PM, I thought the...

    My apologies for the duplicate PM, I thought the first one hadn't gone through because I didn't see it in my sent box . Also, the delay in my response was because I was waiting on a decision on the...
  23. Replies
    11
    Views
    2,272

    OK, so since I last asked about the memory...

    OK, so since I last asked about the memory reading/parsing; the design changed a bit for what I am supposed to be implementing, and I have some new questions I need some help please.

    So I am...
  24. Replies
    11
    Views
    2,272

    Thank you for the feedback. I will put some code...

    Thank you for the feedback. I will put some code together today and request your review when I am done. thanks again.
  25. Replies
    11
    Views
    2,272

    Help with manipulating data read from memory

    Hello,
    It's been quite awhile since I have been away from programming and need some help please.

    I need to add functionality to existing code to read from memory (I am assuming there will be a...
Results 1 to 25 of 44
Page 1 of 2 1 2