Quantcast
Channel: PXI topics
Viewing all articles
Browse latest Browse all 3416

working with the same session of a DMM 4065 in the whole python code with different methods...

$
0
0

Hello everybody,

I would like to have your help about how can we use lock() (NI modular Python API) to work with the same session of a DMM 4065 in the whole python code with different methods...

I do create a python method that configurates the DMM (resolution, range, autozero, triggering....), then i use a method that calls a external signal coming from an AO of a  Daqmx for trrigering DMM, and then i call a method which allows me to fetch data from DMM's buffer.

When executing this code, i have this error: 

nidmm.errors.DriverError: -1074118641: The data is not available. This can be caused by calling Fetch or FetchMultiPoint before calling Initiate or after calling Abort.

Knowing that if i do all that in the same method (the same session) it works...

Than you in advance.

 


Viewing all articles
Browse latest Browse all 3416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>