Hi,
I am currently trying to perform various smaplings of current TestStand step from C# dll, called after the step.
Now in CVI is quite obvious and the fucntion looks like this :
void TX_TEST DLLEXPORT Get_Display_Step_Data_String(tTestData *data,tTestError *testError)
{
TSObj_Step my_step;
TSObj_SeqContext main_context;
char *low_limit;
low_limit=calloc(100,1);
//get the limit of the step
tsErrChk(TS_PropertyGetValString(data->seqContextCVI, &errorInfo, "Parameters.Step.Limits.String",
0, &low_limit));
//now something more tricky - get a calling step's name
TS_SeqContextGetCallingStep (data->seqContextCVI, NULL, &my_step);
//get the step's name
TS_StepGetProperty (my_step, NULL, TS_StepName, CAVT_CSTRING,&step_name_temp );
}
Now no metter how hard i tried, i just can't do it in C#.
It looks like i am unbale to obtain that tTestStand *data pointer.
Could anyone please give a clue about how to do it in C# (we are using Measurement Studio of course).
Thanks,
Serge