Posted Mon, 01 Jul 2024 12:47:34 GMT by Hempel, Franz

Hi everyone,

I'm hoping someone here can help me out. I'm working with the Keithley 4200A-SCS and the PMU module, aiming to perform measurements in the Segmented Arbitrary Waveform Mode. I'm controlling the device and reading the data according to the LPT-lib manual from May 2024.

The problem is that I can't retrieve any measurement data using pulse_fetch. The pulse generation works as expected, and I am waiting for the measurement to finish using a while loop and pulse_exec_status. But afterward the buffer is empty according to pulse_chan_status.

According to the instructions (page 6-23), data retrieval needs to be activated first with pulse_meas_sm. However, this function is not allowed in Segmented Arbitrary Waveform Mode and results in the error "Function not valid in the present pulse mode."

I also tried using the pulse_measrt function, but this didn't work either. I get the error "exception: access violation reading 0x00000054" and cannot retrieve the data with pulse_fetch.

Does anyone have experience with the Segmented Arbitrary Waveform Mode and can tell me which commands I need to use to correctly retrieve the data?

Thanks in advance,
Franz

Posted Thu, 25 Jul 2024 21:07:16 GMT by C, Andrea
Hello,
Have you examined the sample code in the PMU_examples_ulib?
There is also a sample project by same name that show cases each of the modules in the library.
There are a several SegArb related samples in that library.

Let us know if you remain stuck.
Posted Thu, 01 Aug 2024 14:56:02 GMT by Hempel, Franz
Hello,
thanks for pointing out the PMU_examples_ulib. I compared my own code to the example and adjusted the order of some commands. Other than that, my code uses the same commands and parameters as the example. Unfortunately, the buffer is still empty and I cannot retrieve any measurement data.

You must be signed in to post in this forum.