11-18-2018 10:04 AM
Hello,
This question is in regards to aborting asynchronous reads on the PXI-4071 digital multimeter. I've been struggling for awhile to understand how abort is supposed to work. I'm currently using the ReadAsync and ReadMultiPointAsync functions in the NationalInstruments.ModularInstruments.NISwitch.Fx45 dll. When I call Abort it seems to do nothing until the read completes i e. abort does not abort. Per the documentation abort, "Aborts a previously initiated measurement and returns the DMM to the idle state. " It specifically mentions initiate which I'm not using since I'm reading asynchronously and its not required to take a reading. I would bet there's A LOT of information missing from the documentation. It states it in such a simple, trivial way so you would expect it to work in that manner. The description of the abort command offers no further incite then the name of the function itself, its pretty frustrating.
Question : How can I cancel a read that's in progress?
11-19-2018 06:34 PM
Hi ,
Did you check the following document: http://www.ni.com/pdf/manuals/373009d.pdf
there is some action you can't do.
11-26-2018 08:11 AM
I didn't find anything in this document that was helpful in answering my question. Thanks for that the though, that document will be nice to have.
11-27-2018 10:38 AM
Here's a link to the programming flow for NI DMM:
http://zone.ni.com/reference/en-XX/help/370384V-01/dmm/programming_flow/
Abort is used in the Initiate/Fetch branch instead of the Read branch. When you perform a read, stopping the read is already accounted for in that VI. Abort operates more as a regular stop function. Could you have a multiple different tasks that run asynchronously and use the Initiate/Fetch/Abort methods?