04-04-2025 03:09 AM
MAX를 통해 가상 DAQ (cDAQ-9189)및 NI-9472 모듈을 추가하여 LabVIEW 안에서 NI-9472의 디지털 출력 신호와 카운터 출력 신호를 보고싶습니다. 하지만 'DAQmx 쓰기' 함수에서 Duty Cycle을 조절 하여도 출력 주기 점유율 값은 바뀌지 않습니다. 실시간으로 Duty Cycle을 바꾸는 방법이 궁금합니다
04-04-2025 06:34 PM
@chaJH wrote:
I want to add a virtual DAQ (cDAQ-9189) and NI-9472 module through MAX and see the digital output signal and counter output signal of NI-9472 in LabVIEW. However, even if I adjust the Duty Cycle in the 'DAQmx Write' function, the output cycle occupancy value does not change. I wonder how to change the Duty Cycle in real time.
When you said "virtual DAQ", do you mean a virtual channel in the NI MAX or a simulated device?
If it is the former, how and where do you connect the signal? A scope?
04-04-2025 11:05 PM - edited 04-04-2025 11:10 PM
I added a simulation NI DAQmx device through 'new creation' in 'devices and interfaces' on the MAX. The part I asked about is the red circle part of the picture.
04-05-2025 06:20 PM
You have error cluster wired but you never used it. You should wire an error indicator or wire it to the while loop conditional terminal.
As stated in Change Duty Cycle on a Continuous Pulse Train of NI-DAQ™mx Task
Changing the duty cycle on-the-fly is not possible with simulated DAQmx devices and will result in an error:
Error -200557: Specified property cannot be set while the task is running.
Set the property prior to starting the task, or stop the task prior to setting the property.