LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-9472 카운터 출력 듀티사이클 실시간 변경

MAX를 통해 가상 DAQ (cDAQ-9189)및 NI-9472 모듈을 추가하여 LabVIEW 안에서 NI-9472의 디지털 출력 신호와 카운터 출력 신호를 보고싶습니다. 하지만 'DAQmx 쓰기' 함수에서 Duty Cycle을 조절 하여도 출력 주기 점유율 값은 바뀌지 않습니다. 실시간으로 Duty Cycle을 바꾸는 방법이 궁금합니다

0 Kudos
Message 1 of 4
(82 Views)

@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?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 4
(62 Views)

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.

Download All
0 Kudos
Message 3 of 4
(47 Views)

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.

 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 4 of 4
(25 Views)