LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug question...

I have a subVI which runs perfectly and returns the correct data when run by itself.  But when I call this subVI from another VI the subVI returns wrong data. In addition what confuses me is that when I use Highlight Execution to debug the VI which call that problematic subVI the subVI returns correct data(?!!).  I use the same parameters for the subVI when I run it independently and when I run is as  a subVI from another VI. Could someone tell in which direction I should look for this bug? I don't even understand what is causing this inconsistency. Thanks.

0 Kudos
Message 1 of 2
(2,186 Views)
Without seeing the code two things come to mind. 
1. If it works on "highlight execution" mode then it points to a timing issue.  Do you have multiple calls to this data?  Perhaps a race condition.
2. If the data is correct when run alone and incorrect when called as a sub-VI is there a data type mismatch?  Are there any coercion dots or are you doing any typecasting or variant to data conversions that may not be properly formatted?
Hope this helps.
-Dave
0 Kudos
Message 2 of 2
(2,177 Views)