PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

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

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.

 

0 Kudos
Message 1 of 1
(1,657 Views)