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...
Type: Posts; User: ojschubert
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...
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...
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...
Thanks for the reply guys,
I went back and closed the file I opened and it seems to work.
Thanks for the help.
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...
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...
Okay,
Sorry for the stupid question but how do I read it into memory?
OJ
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
Thanks dav,
That did it,
OJ
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
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...
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...
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
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...