Search:

Type: Posts; User: ojschubert

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,360

    help with clock()

    Hi,
    I just want a program to be in an infinite loop but only do part of the code once a certain amount of time has elapsed.

    I've tried using clock() but can't get it to work. Is the clock...
  2. How do I do something when a program exits?

    Hi

    I'm running a program that is a continuous loop. I want to dump an array into a text docuemnt when I press ctrl-c to exit. I can already put the arrary into the text doc, I just want to do...
  3. Replies
    1
    Views
    1,051

    How do I do something during a delay?

    Hi

    I have a program which continually measures and controls the postion of an actuator. Every so often I need let the actutor rest for 15 seconds. Right now I just sleep(). How can I still take...
  4. Replies
    4
    Views
    4,035

    Thanks for the reply guys, I went back and...

    Thanks for the reply guys,

    I went back and closed the file I opened and it seems to work.

    Thanks for the help.
  5. Replies
    4
    Views
    4,035

    Linux device files

    Hi,

    Is there a limit to how many times you can open or write to a device file? I have a program which is a continuous loop and is always writing or reading an I2C device file. After about the...
  6. Replies
    6
    Views
    1,214

    Okay, I think I've sort of got it into memory...

    Okay,
    I think I've sort of got it into memory now but there are still problems. When I try to print out the file that I've just got, it only gives me the last row.

    And then I try to change a...
  7. Replies
    6
    Views
    1,214

    Okay, Sorry for the stupid question but how do I...

    Okay,
    Sorry for the stupid question but how do I read it into memory?
    OJ
  8. Replies
    6
    Views
    1,214

    editing a txt document

    Hi,

    I'm trying to edit a single number inside a text document.

    For example a document like this:

    row1: 12
    row2: 34
    row3: 32
    row4: 23
  9. Thread: popen help

    by ojschubert
    Replies
    2
    Views
    2,153

    Thanks dav, That did it, OJ

    Thanks dav,
    That did it,

    OJ
  10. Replies
    2
    Views
    3,246

    Thanks for the reply. I think i kind of did like...

    Thanks for the reply.
    I think i kind of did like you said. I sent my output to a text file, then that file into octave.

    Thanks again,
    OJ
  11. Replies
    2
    Views
    3,246

    plot array outside of C-program

    Hello,

    C newbie here. I'd like to be able to plot a simple line graph of an array created in my C-program. I can easily plot an array with Octave but how do I get an array from my C-program to...
  12. Thread: popen help

    by ojschubert
    Replies
    2
    Views
    2,153

    popen help

    Hello,
    I'm trying to open a Linux shell script which searches a document for a particular number.

    I would like to get this number into a variable for use in my C-program so I can test it.

    I...
  13. Replies
    3
    Views
    1,277

    Works like a charm Salem. I don't see how the...

    Works like a charm Salem.

    I don't see how the output of my script gets into stdout but I'll look into that.

    Thanks a lot,
    oj
  14. Replies
    3
    Views
    1,277

    Envir. variables into C program

    Hello,

    I'm fairly new to both linux and C programming so this might be a stupid question.

    I'm trying to write a C program that calls a shell script which does an scp and also sets an...
Results 1 to 14 of 14