LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a SubVI from a text file

I would like to create a SubVI based on a text file containing a list of signals. This list of signal will change thousand of time. so it would be great to create it automatically.

The main reason of this is to being able to pass from a Array of double to a Cluster with labeled double. Allowing me to use the UnbundleByName to easily recognize my signal by their appropriate name.

I included an example of the desired SubVI.

Thanks

Nitrof
0 Kudos
Message 1 of 3
(2,670 Views)
What do you want to do exactly?

Do you really need a thousand of different subVIs for a thousand of signal lists?

This is possible but if you explain better, we can surely find more convenient ways to address your needs.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 3
(2,670 Views)
Nitrof,

I agree with Jean-Pierre, we need more information. However, here is what I can tell you from what I understand so far. You have a list of doubles in a text file. You want to read those doubles into an array. You wish to use four doubles at a time in a cluster to run your subVI. Is this all correct?
If it is, then I suggest using the Index Array function in a loop to create the clusters. Or you could just read in 4 doubles at a time from the file and process as you go. There are many options, it just depends on your preferences and needs for your application.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 3 of 3
(2,670 Views)