ah. Is it like catching Ctrl+C? I've done that before.
Type: Posts; User: darkwalk
ah. Is it like catching Ctrl+C? I've done that before.
I've tried to think of a solution, but I can't do it without some help. Lets say I have a c code that is executing and splitting out data using printf() statements constantly. Is there a way I can...
Thanks! I think the second option is the best way. Its just so much easier to use matlab to plot, so I'm goign to avoid the third suggestion.
Hi everyone. I have always wanted to execute a C/C++ code for use in simulation and outputting the data in a file. Then, afterwards execute an M-file in matlab to plot the said data. I was...
"There are no references in C" Ahh, I see. I used a pointer and it worked fine. Thanks!
Oh yea, the error it gives me is:
error: syntax error before '&' token
I don't code in C very much, so I have a simple question for you all gurus out there. Whats wrong with the following code? I can do it in C++ by passing a class instead of struct...
typedef...
Thanx quzah!
woot! it works. Here's what I have:
#include <stdio.h>
#include <signal.h>
void do_this_last( int );
int stop;
int main(){
itsme86: Its not a question of when the data stream ends. I don't know until I'm in the middle of running the hardware.
esbo: No, I'm not doing a thesis in CS. :-) I'd be in big trouble!
I can trap ctrl+c? sweet. Thats all I would need. I did some googling, and this is what I came up with:
...
First of all, thanks for all the replies. They're great help!
bubba: The client/server do not have complex acknowledge, ready, send, recieve signals unfortunately. The client just sends data...
quzah, thanks for the reply. I think I didn't explain the situation correctly. Your code is basically what I'm doing, except that the for loop is a while(1) loop. It goes on forever, because I...
Hi all: This is for a program I wrote for my master's thesis. The program executes an infinite while loop and at each pass, it acquires data from an aquisition board. Because I don't know how long...