LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot call "mask and limit testing" inside a loop

Calling "mask and limit testing" in a loop doesn't work. The problem
is that the Upper Limit and Lower Limit are initialized only the first
time the VI is called. All waveforms are tested against the same
limits even if different limits are passed at each iteration. Is there
a way to use this VI in a loop?
Thanks!
Martin
0 Kudos
Message 1 of 2
(2,567 Views)
Dear Martin,

Thank you for contacting National Instruments. I would like to apologize for the delay in responding to your support request.

From the information you have provided, it sounds like you are running your VI and experiences issues with the lower and upper mask refreshing after subsequent iterations of the FOR loop.

The �Mask and Limit Testing� Express VI is not intended to function inside a loop; however, you can fortunately modify this Express VI to perform the desired action. To do so, please follow these instructions:

1) Open the Block Diagram for your �test_limits_testing.vi� file
2) [Right Click] on the �Mask and Limits Testing.vi� Express VI
a. Select [Open Front Panel]
b. When prompted to convert to a standart subVI, choose [Convert]
3)
[Right Click] on the �subMaskLimitTesting.vi� Express VI
a. Select [Open Front Panel]
4) From the toolbar, select [Window] >> [Show Block Diagram]
5) You should see two subVI�s named �MatchDT� (white icons with black text)
a. Wire a [True] Constant to the �Reset 2� input terminal for each of the �MatchDT� subVI�s
i. To do this, right click each input terminal and select [Create]>>[Constant]
ii. Make sure the constant value is set to [T] for �true�
6) Save and Close the subVI�s
7) Re-run your �test_limits_testing.vi� file, and the masking limits should re-initialize upon each loop iteration

You have successfully customized the VI to function within a loop.

I hope this helps! Please don�t hesitate to let me know if there�s anything else I can help with or clarify. Have a great day!

Kind Regards,
Joe Des Rosier
National Instruments
0 Kudos
Message 2 of 2
(2,567 Views)