Jump to content
thoraz

Problem with the funcionality of my sub VI

Recommended Posts

I have created a sub-vi which un-pack data comnig from an embedded board with 8 channels and puts on its output the results. Now I'd like to implement an addictional feature which regards the filtering of this data through a low and high pass. So I created another sub-vi that integrate these kind of filters with inputs to set their configuration.

When I use the filtering sub-vi on only one channel all seems to work well, but as soon as I add another one on another channel it doesn't work: the output signals are not filtered; there some changes in their trends but it's a indefinite behavior, not a low/high pass processing. It seems thet the presence of one filtering sub-vi intereferes with the other. I tryed to understand the problem but actually I'm in a dead end.

Can anyone give me any suggestion or maybe a solution?

filtering.vi

unpack.vi

Share this post


Link to post
Share on other sites

I suspect this has to do with the filtering VI you have used, they are "Point by Point" so internally they remember their state. As you have then wrapped these in a sub VI (which you also call on multiple independent channels) you will probably need to set the sub VI reentrancy to clone so that you don't stomp all over your data when you have multiple copies of your sub VI. 

Sub VI reentrancy.PNG

Share this post


Link to post
Share on other sites
6 hours ago, Neil Pate said:

I suspect this has to do with the filtering VI you have used, they are "Point by Point" so internally they remember their state. As you have then wrapped these in a sub VI (which you also call on multiple independent channels) you will probably need to set the sub VI reentrancy to clone so that you don't stomp all over your data when you have multiple copies of your sub VI. 

Sub VI reentrancy.PNG

Thank you!!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.