Jump to content

Bartłomiej Sikora

Members
  • Posts

    3
  • Joined

  • Last visited

Bartłomiej Sikora's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. I am looking for a timer synchronization solution for AO and AI for a real-time control appliaction. I attached an exemplary program with PID. It works fine for the "No clock" option in clock source. For "Onboard / External Clock" it does not work, returning error 10014 at ULx Write (Analog 1D DBL 1Chan 1Sample) - Measurements: Specified operation cannot be performed while the task is running. I am kindly asking for advice or sources from which I will be able to learn and understand how to synchronize AI / AO in RT for USB-1208HS-4AO. I found and attached below a similar example from DAQmx, where you can see that the clock source for AO is the output from the AI clock (red circle). How can I implement that by using ULx LabVIEW library for USB-1208HS-4AO (MCC DAQ devices)? pid_ctrl_example1.vi
  2. Dear John, Thank you very much for the valuable advice, according to which I was able to get the first measurements, but I still have some confusion about the code (pmDataScan1208HS.py), that is how to acquire synchronously AI and AO data. I attached a program that utilizes pulse_out, ai_scan and ao_scan in EXTCLC mode. The code is basically copy-paste three functions You have mentioned with minor changes. There are lines 81,82, where in the pulse _out function I call ai_scan, ao_scan. How could I be sure of the measured data synchronization? I will be very grateful for further advice, where should I start to work with this code. Also my experience up to now was around control systems in Simulink, but in a new job I may use Python or LabVIEW. Would You recommend me to start building control system in LabVIEW rather than with UL Python Library help? First task will be a real-time temperature control in peltier module. Next project may include high-speed rotating machinery diagnosis. Any advice, how to speed up rapid prototyping with such applications will be very useful. Best regards, Bartek pmDataScan1208HS.py ul.py
  3. Good Morning, I have bought USB-1208HS-4AO and would like to control/plot/aquire data from 4 AI channels and 2 AO channels with the given sampling frequency up to 5kHz as close to synchronous mode, as it is possible. I am using the Python UL, but I am a quite new Python learner, so any tips/tutorials or code advice will be a great help for me. I am trying with a_in_scan and a_out_scan.py + pulse_out.py as a trigger, but it seems, that these operations are not running at the same time. Should I change the OS or programming language? Maybe LabView? I am open for any suggestions! Best Regards Bartłomiej Sikora
×
×
  • Create New...