Hello Jeremiah !
> When you use a time interval of 75.0E-6, your instrument beeps and
> displays ERR,
> but if you use a larger value it works? If so, then if you set a
> breakpoint and step through the code, the error should occur when you
> run the line
> ConfigureMultiPoint().
NO !
The error "ERR" occur when I run the line: \/
----------------------------------------------------------------------------
-----------------------------
hp3458a_ReadMultiPoint (hp3458a, 60000, number_samples, readings_vector,
&number_samples);
----------------------------------------------------------------------------
-----------------------------
I have placed a call to "hp3458a_error_query()" function directly after the
mentioned above line.
----------------------------------------------------------------------------
-----------------------------
hp3458a_error_query (hp3458a, &error_code, error_message);
----------------------------------------------------------------------------
-----------------------------
and then have seen
TRIGGER TOO FAST !!!!!!!!!!!!
>You may want to place a call to
> hp3458a_error_query() directly after the line that causes the error.
> This will read the error from the device and should give insight as to
> the cause. You might also use NI-Spy (Measurement & Automation
> Explorer >> Tools) to trace the VISA calls being made from the driver
> to see if anything looks incorrect.
I have enclosed my program with the files from "NI-Spy":
1) Capture.spy and
2) Capture.txt
P.S.
I think that the error occurs because of the format DREAL which
uses function "hp3458a_ReadMultiPoint()" and multimeter
can't fall behind with writing to memory.
Because when I have written
hp3458a_WriteInstrData (hp3458a, "PRESET DIG") // 256 samples, 20E-6
interval time, MFORMAT SINT !!!!!!
hp3458a_WriteInstrData (hp3458a, "DISP OFF")
hp3458a_WriteInstrData (hp3458a, "TRIG LEVEL")
hp3458a_WriteInstrData (hp3458a, "TARM SGL")
then it's OK !!!!!!
but I can't acquire the samples by means of "FetchMultiPoint()" function
because that function uses SINT format too.
I will be grateful to You for help !!!
Piotr
----------------------------------------------------------------------------
--
----------------------------------------------------------------------------
--
Previous e-mail: \/
----------------------------------------------------------------------------
--
>
> Problem Description :
> Hi !
>
> I'd like to write a program with LabWindows/CVI 5.5 which,
> to interact the multimeter HP3458a, should programme the multimeter
> so that the multimeter HP3458a
> could take 256 samples with DSDC (direct-sampling) and :
>
> - time interval between
> the samples 75E-6sec
> - level triggering at 0% of the range
> - level trigger event
> - enable reading memory
> - transfer samples to computer PC
>
> using the driver:
> ==============================
> Instrument Driver information:
> -----------------------------
> Prefix: hp3458a
> Driver Revision: 2.0
> Original Release Date: 03/08/99
> Update Release Date: 06/14/2000
> ==================================
>
> Belove there is a snippet of my program, and it doesn't work properly,
> and multimeter displays ERR.
>
> When I increase the time interval between samples is OK.
>
> Why ?
>
> =================================
> hp3458a_init ("GPIB0::22::INSTR", VI_TRUE, VI_TRUE, &hp3458a)
> hp3458a_ConfigureMeasurement (hp3458a,
> HP3458A_VAL_DC_CPL_DIRECT,
>
> 10.0, 0.001)
> hp3458a_WriteInstrData
> (hp3458a, "MEM FIFO")
> hp3458a_ConfigureMultiPoint
> (hp3458a, 2, 256, HP3458A_VAL_INTERVAL, 75.0E-6)
> hp3458a_WriteInstrData (hp3458a, "TRIG LEVEL")
> hp3458a_WriteInstrData (hp3458a, "DISP OFF")
> hp3458a_ReadMultiPoint (hp3458a, 60000, 256, readings_vector,
> &number_samples)
> ===================================
>
[Attachment File.dat, see below]
[Attachment Capture.txt, see below]
[Attachment Dsdc.c, see below]
[Attachment Dsdc.h, see below]
[Attachment Dsdc.prj, see below]
[Attachment Dsdc.uir, see below]
[Attachment Capture.spy, see below]
[See first reply for additional information]