ExpeditionExpedition Navigation Software


Click Here for Expedition Assistant - AI Chatbot

You are not logged in. Would you like to login or register?

11/04/2026 1:04 pm  #1


How does GetExpVar2 and SetExpVar2 work?

I have some previous applications that stopped working as it was based on DLL calls GetExpVars. I can see in the ExpDLL.h that the two new GetExpVar2 and SetExpVar2 are available. Does anyone knows how they work?

There is an include of "sys_val.h" in the ExpDLL.h but can not find that file. That might give some clarity...

Also, does this upgrade of the DLL means one have to loop through several GetExpVar to pick up several channels per run?

 

 

11/04/2026 2:15 pm  #2


Re: How does GetExpVar2 and SetExpVar2 work?

You can also just use GetExpVar() for most data.

ExVar is just a struct. most vars are doubles, but time vars will use the t member. Currently defined as:

enum e_ValType
{
    e_Bool,
    e_Double,
    e_Int32,
    e_Int64,     // time
    e_String,
};


struct ExVal
{
    int8_t type;     // e_ValType

    union
    {
        bool b;
        double d;
        int32_t i32;
        int64_t t;            // winrt::clock, 100 nanosecond intervals since Jan 1 1601
        char s[8];
    };
};

 

Yesterday 12:07 am  #3


Re: How does GetExpVar2 and SetExpVar2 work?

Thanks for the prompt answer. So getting a batch of channels, the procedure would be to loop through a bunch of GetExpVar?

I guess there would not be a performance penalty as the dll itself previously had to do the loops for a GetExpVars call anyway, correct?

     •Thread Starter
 

Yesterday 11:41 am  #4


Re: How does GetExpVar2 and SetExpVar2 work?

Yes, that is how you would do it.

 

Board footera




Check out RaceData for iOS and Android. Expedition data in the palm of your hand, or on your wrist! RaceData

Interested in advertising here? Over one thousand active navigators and Expedition users visit this forum. Click here to contact the administrator.