キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Python API, for loop, trigger delay

Hello,

I am trying to write the attached LabView code (courtesy of a NI: Gregor Hufnagel)  in the python API, but I have a few questions:

  1. How’s the for while loop treated in Labview?
    1. Is it also HW programmed into the DAQ?
    2. Or is it still controlled by windows?
  2. How is the while loop treated in the python API?
    1. Can I expect an issue with the windows timing?
  3. Does the trigger delay exists in the python API? I could not find it anywhere in the documentation.
0 件の賞賛
メッセージ1/4
1,558件の閲覧回数

Hi cmacrom,

 


@cmacrom wrote:

I have a few questions:

  1. How’s the for loop treated in Labview?
    1. Is it also HW programmed into the DAQ?
    2. Or is it still controlled by windows?

There is no FOR loop visible in your image…

 

In case you are talking about the WHILE loop: it is executed in software, there is no way to implement it in DAQ hardware (except you start to program a FPGA). That loop execution is of course dependent on Windows execution timing/influences.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ2/4
1,542件の閲覧回数

...

0 件の賞賛
メッセージ3/4
1,502件の閲覧回数

The while or for loops are software-timed, regardless of whether it is executed in LabVIEW or Python. The DAQ is hardware-timed because of the sample clock. The calling of DAQmx Read API is still software-timed but the sample points acquired by the hardware are timed by the onboard sample clock in the DAQ.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 件の賞賛
メッセージ4/4
1,495件の閲覧回数