08-31-2023 04:12 AM - edited 08-31-2023 04:44 AM
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:
08-31-2023 04:40 AM
Hi cmacrom,
@cmacrom wrote:
I have a few questions:
- How’s the for loop treated in Labview?
- Is it also HW programmed into the DAQ?
- 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.
08-31-2023 07:19 AM - edited 08-31-2023 07:20 AM
...
08-31-2023 07:35 AM
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.