| Author |
Comment/Response |
Michelle
|
05/10/12 02:27am
someone who knows mathematica and C?
I am a beginner in mathematica and want to paste some code in software written in C. here is some help from a friend. this below is complete gibberish to me. maybe you can help me out with the next step. thanks a bunch
Here is the C structure involved:
struct SIEDatum
{
double value;
SubscriptionID id;
timeval time;
SIEDatumType type;
};
SubscriptionID here is an unsigned long integer.
timeval is a structure of two integers: seconds in the first, and microseconds in the second.
SIEDatumType is just an enumeration, which is just a name for a number.
Here are the names. The corresponding numbers start at 1 and go up by 1
enum SIEDatumType
{
AD= 1,
AP,
BD,
BP,
CP,
HP,
LD,
LP,
LT,
LP,
OI,
OP,
VO
};
So AD is 1, AP is 2, BD is 3, etc.
If I can get my function to take data in these packets, I'll be off to a great start.
URL: , |
|