05-01-2023 03:30 PM
For Arduino, LabVIEW LINX runs on a Windows host and communicates with it via the serial interface. The serial communication path and the jitter from Windows are causing the delay here. If you want to get a faster response of below 10ms, you should run the program on the Arduino directly, which is unfortunately not supported by LabVIEW LINX. You need to use the Arduino IDE.
If you don't want to learn text programming and want to stick with LabVIEW, you can switch to Raspberry Pi. LabVIEW Hobbyist Toolkit (or LINX) supports deploying and running VI on the Raspberry Pi. See Getting Started with Raspberry Pi and LabVIEW Community Edition
05-01-2023 03:43 PM
Thank you for the reply.
The lowest clk I could make is 30Hz. With that the clk_out was more coherent but still not the same frequency.
I think I need to find a way to created lower frequency clk (probably 10), or don't use labVIEW.
05-02-2023 05:31 PM
Thank you for your reply ZYOng.
I didn't used LabVIEW for controlling Arduino. I am using Arduino and LabVIEW to do measurement for the circuit that I fabricated. To perform automated measurement.
05-02-2023 06:37 PM
I tried making a clk with 10Hz frequency using LabVIEW like below.
I monitored the clk from digital pin of Arduino with scope, the period (on and of) of the signal seems ok (100 ms) but the frequency that the scope recognizes for the signal fluctuates between 5 and 16 Hz.