Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'someone who knows mathematica and C?' topicStudent Support Forum > General > "someone who knows mathematica and C?"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'someone who knows mathematica and C?')
Author Date Posted
someone who knows mathematica and C? Michelle 05/10/12 02:27am
Re: someone who knows mathematica and C? Bill Simpson 05/13/12 02:09am
Next Comment >Help | Reply To Topic