Hello Pavan,
> Do you have two separate systems - one with CVI 5.5 and one with CVI
> 6.0.
Yes, the system with CVI5.5 is running correctly. The other system is
running with both version: CVI5.5 & CVI6 and both gives the faulty
results.
> Which version of IVI engine do you have?
I?m using actually version 1.83. Before i have used IVI 1.60
>What happens if you try to get current multiple times without getting
voltage in between?
With the second call of the function i get the correct values.
For Example:
hpe363xa_Measure (hpe3631a, "1", HPE363XA_VAL_MEASURE_VOLTAGE, &volt);
.... returns faulty values
hpe363xa_Measure (hpe3631a, "1", HPE363XA_VAL_MEASURE_VOLTAGE, &volt);
.... same call return then correct values.
>This could be also a timing issue
Right, i?m examine in this direction at the moment. What me confuses
is that the errors occurs also in interactive mode (when i run the
function panel one by one manualy).
>What functions do you call before the Measure function.
1. hpe363xa_init ("GPIB::5", VI_OFF, VI_OFF, &hpe3631a);
2. hpe363xa_ConfigureVoltageLevel (hpe3631a, "1", 5.0);
3. hpe363xa_ConfigureCurrentLimit (hpe3631a, "1",
HPE363XA_VAL_CURRENT_REGULATE, max_5V);
4. hpe363xa_ConfigureVoltageLevel (hpe3631a, "2", 12.0);
5. hpe363xa_ConfigureCurrentLimit (hpe3631a, "2",
HPE363XA_VAL_CURRENT_REGULATE, max_12V);
6. hpe363xa_ConfigureOutputEnabled (hpe3631a, "1", VI_TRUE)
7. hpe363xa_ConfigureOutputEnabled (hpe3631a, "2", VI_TRUE)
then i began to read the data from the Power Supply
.... hpe363xa_Measure (hpe3631a, "1", HPE363XA_VAL_MEASURE_VOLTAGE,
&volt);
.... hpe363xa_Measure (hpe3631a, "2", HPE363XA_VAL_MEASURE_VOLTAGE,
&volt);
>If you can send the code or at least an NI-spy output
I have attached a small spy-file. Pleas look at line 3 & 6 and at line
9 & 12. The function returned different values. The exponent is wrong
I have open another thread in public.gpib.general, cause i think it
will fit there better. Please have a look at the discussion.
thanks & best regards
Gregoire
[Attachment Capture.spy, see below]