Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 70379

Force subVI allocation

$
0
0

Hi,

I have a tough problem that I hope LabView would allow me to solve easily:

I have an n-channel data acquisition stage where each of the channels could be one of the several possible types of signals. Let's say we have two types of signals - A and B - and that we have 8 channels each of which could be of type A or B as configurable by user. I want a FOR loop looping over all the signals and depending on their name (A or B) going into a case structure and doing stuff, like this:Capture.PNG

 

Now, imagine that "DO SOMETHING" is a subVI - "vi_A" for type A and "vi_B" for type B and that it needs to filter the signal.

Here I have a problem: the LabView cannot know that (for example) signal 1 being of type A and signal 6 being of the same type A are actually two different signals and the same instance of "vi_A" with the same instance of filter will be called. I need to be able to tell LabView to allocate a different instance of "vi_A" for different channel numbers above!

 

Is there a way of achieving this?  Could I, for example, preallocate 8 instances of "vi_A" and "vi_B" and use those preallocated instances by reference or something like that?

 

Thanks a lot in advance!

 


Viewing all articles
Browse latest Browse all 70379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>