LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, it is possible to dynamicly change number of inputs - outputs in VI ?

I have crate with submodules, and want autodetect number ant type of submodules, after that create VI with different number and type of inputs - outputs, with different frequency configuration.
Planning to do raw interface with crate in C++ or C#.

It is possible ?
0 Kudos
Message 1 of 18
(3,425 Views)

Even if your elaborate query is a bit confusing for me, I can understand your que title very well. Smiley Wink

The answer is 'NO'.

However, if you want to increase the no. of I/Os that your SubVI needs, maybe you can think of passing your parameters thro' arrays or clusters [ equivalent to Structures in C].

- Partha ( CLD until Oct 2027 🙂 )
Message 2 of 18
(3,422 Views)
Thank you parthabe.
Sorry for my not ideal English. Smiley Surprised

Array of clusters isn't possible for me, because all must be very simple - this must will be users example.
0 Kudos
Message 3 of 18
(3,410 Views)

Can you elaborate more?

What will be users' example?

If it is going to be user-fed UI, how/what will you need to be generated ob the background [Block Diagram] by LabVIEW?

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 18
(3,404 Views)

Have you tried creating a polymorphic VI? doesnt that help?

Yes, as previous post, please elaborate your question.



Message Edited by Vsh on 04-02-2008 04:31 AM
0 Kudos
Message 5 of 18
(3,396 Views)
Situation :
I have crate with different set of submodules.
Have same dll for get number and type of submodules, and for working for submodules.

Have idea - create one VI with current set of channels and settings for representing crate and current set of submodules.
But if I change submodules, VI channels and settings must be changed too.
0 Kudos
Message 6 of 18
(3,393 Views)

Can you post the code that you have developed till now?

So that we can build upon it?

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 18
(3,387 Views)
I am beginner at LabView, and now want determine how it possible and direction to move.

0 Kudos
Message 8 of 18
(3,382 Views)
I believe you dont need to change the number of inputs of subVI, you are missing the understanding of subVI inputs and outputs
 
If I have understood your question properly, you need to pass "different number of inputs" to the subVI right? which can easily be achieved using an array. Your "different number of inputs" can be built in an array and pass the aray to the subVI.
 
If you are looking to pass the channel string to the subVI, build the channel strings in a single string (see Physical Channel List in Help). and pass the string to the subVI.
or also you can pass the array of string to the subVI.
 
Hope this helps
 
 
0 Kudos
Message 9 of 18
(3,373 Views)
In this file - examples for each submodule separately. (LabView 😎
May be this help understand task.
0 Kudos
Message 10 of 18
(3,366 Views)