LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Size of ring menu when it contains no data...

Solved!
Go to solution

I am populating the saved file names from a specific path and I need to abort the VI if there is no file in that path. But when I connect Array size to the property node (string) of the ring menu, the output size is 1 which has to be zero. How can I rectify it?

0 Kudos
Message 1 of 4
(3,018 Views)

First of all, be very conscious of the terminology that you use; to Abort a VI is a specific term in LabVIEW.  If you actually did mean to use the Abort feature, then we can discuss that separately, as you should NOT be using it in the manner that you described.

 

As for the rest of your post, it sounds like you are reading the list of a ring menu control's item labels and checking the size of that array?

I would suggest checking the size of the array prior to populating the the ring menu control's item labels...



0 Kudos
Message 2 of 4
(3,001 Views)
Solution
Accepted by topic author Rashme_SR

Hi srrashme,

 

a ring should have atleast one entry.

How should it look without any entries?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(2,999 Views)

Dear GerdW,

 

Thanks for your reply. It helped me to solve the issue. Now I connected the Array size function to the output of List Folder function and its working fine.

 

Regards,

Rashme SR

0 Kudos
Message 4 of 4
(2,961 Views)