I define two functions,one is A,the other is B.example as:
ViStatus _VI_FUNC B(ViString power)
{
ViStatus status = VI_SUCCESS;
ViChar buf[BUFFER_SIZE];
ViInt32 retCnt;
Fmt (buf, "%s<%s",power); //打开平均功率测试
if ((status = viWrite (instrSession, buf, NumFmtdBytes (), &retCnt)) < 0)
return status;
}
ViStatus _VI_FUNC A(ViSession instrsession)
{ViString power;
B( power);
}
Now the question is : the power when I used in function A,I need evaluate it,but the value is GPIB command,can I do it like below:
ViString power="AVG_POWER"
there AVG_POWER is a GPIB command of the instrument.
thank you