toastytato / DAQ_Interface

GUI for controlling NI DAQ devices and monitoring output/input voltages, current, and other variables
10 stars 3 forks source link

Trying to connect with a daq device #1

Open thom6117 opened 1 year ago

thom6117 commented 1 year ago

I'm have two questions.

  1. In the instructions in ReadMe file, it says to run the "pyqt_main.py," but I notice that pyqt_main.spec is a spec file, not a py one. I started using running main.py and got the interface to come up, but I don't see any way to switch between the two modes. Just wondering if I'm making a mistake here or if there's a way to run the spec file.
  2. Second, I'm unsure of the steps to take to connect my DAQ device to the interface. Could someone provide me with some guidance on how to approach this?
toastytato commented 1 year ago

Hey sorry this codebase was still in the works when I published it so I still need to update the documentation.

  1. I would ignore the spec file. Instead, try just running main.py as a python file once you've downloaded the codebase.
  2. To connect the DAQ, I've put the recommended steps in the README. Essentially, I would first download the NI MAX software which is the official software for controlling the DAQ hardware. Once that is downloaded, you can see the name associated with the DAQ device you want to control. Once you know what the device name is associated with the writer/reader DAQs, you can change the device name under parameters.py --> class ConfigParamTree --> settings_param --> Writer/Reader Config --> "value".
  3. Ideally I would change this value under config.py since the device name needs to be correct on startup. If not, the nidaqmx will throw an error saying it can't connect to the DAQ device. However, I have yet to make that update to this codebase, so for now follow step #2.