Call an NI MAX Task in Python

Updated Aug 30, 2018

Reported In

Software

  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

Other

Python

Issue Details

I would like to create configure a task in NI Measurement & Automation Explorer (NI MAX), and then call the task in Python. How can I do this? 

Solution

The command to call a NI MAX task in Python is 

task = nidaqmx.system.storage.persisted_task.PersistedTask("DaqAssistantTaskName").load()

You can use the NI-DAQmx Python API to program your DAQ system in Python. For a full list of functions and additional information, see the NI-DAQmx Python Documentation page.

Additional Information

To be able to use these functions you will need DAQmx downloaded, further instructions can be found on the the NI-DAQmx Python Documentation - Installation page.