Hi everyone,
I have to set up a schedule table in C, but I don't know how. Something like this:
0 RT3 T SA 10
100msec RT4 R SA 6
110msec RT5 R SA 7
111msec RT5 R SA 8
.
.
Anyone know about this, please help! Thanks a bunch!
Hi everyone,
I have to set up a schedule table in C, but I don't know how. Something like this:
0 RT3 T SA 10
100msec RT4 R SA 6
110msec RT5 R SA 7
111msec RT5 R SA 8
.
.
Anyone know about this, please help! Thanks a bunch!
You mean something like a table of strings?
Loading.....
( Trying to be a good C Programmer )
How about a struct. I'm kinda guessing what you're after here, you haven't given us much to go on.
Code:typedef struct { int Something1; int Something2; int Something3; } schedulerow_t; schedulerow_t MySchedule[100];
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Sorry for not giving much info. This is the first time I'm working with the MIL-STD1553, but I don't know much about it
First of all, I need to define a structure like this:
Then I will need to set up a schedule table like the first message. It means at time 0 msecond, RT3 will Transfer to SA 10, then at time 100 msec RT will Receive from SA6, and so on.Code:typedef struct { int RT#; T/R 0/1; int SA#; int #words; } schedulerow_t;
Any help would be appreciated.
I'll bet most on this board have never heard of, let alone used, MIL-STD1553. I for one haven't a clue.
OK, you have a structure which you've defined with major syntax problems. Can you define the structure correctly or is that what you're having problems with -- basic C syntax?Originally posted by vnrabbit
First of all, I need to define a structure like this:
Code:typedef struct { int RT#; T/R 0/1; int SA#; int #words; } schedulerow_t;
When it comes to your schedule table, it looks like you've defined that too. I therefore see no problem. You need to explain what you are having trouble with -- exactly.Originally posted by vnrabbit
I have to set up a schedule table in C, but I don't know how. Something like this:
0 RT3 T SA 10
100msec RT4 R SA 6
110msec RT5 R SA 7
111msec RT5 R SA 8
.
.
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers