From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time offset between two timed loop SubVIs (cRIO-9112, LabVIEW 18 SP1)

Hi everyone,

 

I have a vi which produces two pulse-width modulated triggering sequences and runs on a cRIO-9112 in Scan Mode outputting to two NI9472 modules. I am trying unsuccessfully to offset these two sequences by a specified time.

 

The ON/OFF trigger is generated in a timed loop contained in the subvi shown below. 

tbudanko_0-1676318734591.png

Two instances of this subvi are called by the main vi as shown below and a time delay is specified for one. When I measure my output of the two signals, the offset is incorrect and inconsistent. So far I've tried syncing the timed loops by using the flat sequence shown below and by using the Synchronize Timed Structure Starts VI but without success. When I use the latter, the loops do sync exactly, even when I specify a delay. What am I doing wrong and how do I correct it?tbudanko_1-1676318876857.png

 

Regards

0 Kudos
Message 1 of 1
(533 Views)