11-12-2005 10:27 AM
11-13-2005 04:44 AM
Yes you can.
After the creation of a VI from some selected code inside your caling VI you can open the VI and edit it. For savety reasons save it first to hard disk and give it a reasonable name. After that click right on the front panel icon of the VI and select show connector. Switch the tool to something else than the selection tool. If you click on one of the connector inputs the corresponding control or indicator will be selected. By a right click on the connector you can select another pattern or to disconnect one or all inputs. With this you can rearange the VIs inputs and outputs.
When you have done all changes than save again. The calles VI in your top level VI will be grayed out. Just click right on the VI and select RELINK TO SUBVI.
Thats it.
With kind regards
Martin
11-13-2005 01:14 PM
Attached is a "literal" translation of your subVI. It does not make much functional or logical sense, but it shows how you would make "index" a control and use a shift register to increment it.
Please explain the purpose and intended functionality. Maybe we can come up with a better solution. 🙂
11-14-2005 05:54 AM
11-14-2005 06:26 AM - edited 11-14-2005 06:26 AM
kurt_come a écrit:
It isn't important what my program do. The problem is when I create Subvi.Now I attach "temp.vi", the subvi of problem_variable (to bloque).vi.You can see , the jam, the mess that produces.Is true that...Every time I built a subvi, in a block with Local Variable, Labview produces reference.In this procedure Labview , create mistake, in subvi---> A correct sub Vi becomes a incorrect sub VI
You are right, it's a mess... but that's not a problem with LV ;):)
You can't create a subvi with imbedded local variables without automatc creation of corresponding control and a reference to it. Use global instead if you really need suche a solution.
May be you should listen more carefully to what Altenbach told you. That should make your life happier...
"Il n'y a pire sourd que celui qui ne veut entendre..."
Message Edité par chilly charly le 11-14-2005 01:32 PM
11-14-2005 07:48 AM
You are right, it's a mess... but that's not a problem with LV ![]()
![]()
You can't create a subvi with imbedded local variables without automatc creation of corresponding control and a reference to it. Use global instead if you really need suche a solution.
May be you should listen more carefully to what Altenbach told you. That should make your life happier...
"Il n'y a pire sourd que celui qui ne veut entendre..."
11-14-2005 09:00 AM
11-14-2005 09:38 AM
kurt_come a écrit:
chillly charly said:
...That should make your life happier... "Il n'y a pire sourd que celui qui ne veut entendre..."
This is a forum, and you seem a teacher, with a bad boy.In my experience, I've never seen senteces like the last two in a forum.I want you cancel the last sentences, of your post, else I will call with web master.
Sorry if you have been disturbed by my contribution. Relax, there is nothing to be cancelled. There was no offense, may be just a problem of serial translation from french to english, and english to italian I guess ?
You are right, I'm a teacher, really... even a University professor. And I also have some experience of helping others in this forum, as you may discover if you decide to stay with us. So I'll do my best to make things clear :
"That should make your life happier" means that if you listen to the guidance of the experts (... and Altenbach is undoubtedly one of out greatest experts ! He surely didn't deserve the poor rating that you gave to his excellent answer), you will meet less problems.
The second sentence "Il n'y a pire sourd que celui qui ne veut entendre" is a very old french proverb. Means that the worst deaf is the one that don't want to listen. (I thought you were either french or able to read french). In the context of this thread, it means simply that instead of sticking to your own idea, you should consider the point of view of others. That's why you came to this forum, am'I wrong ?
That being said, try to navigate through this forum, take the time to read a few threads, for instance in the BreakPoint board, and you will discover that this is not only a technical forum, but a space of friendship and humour. People here share the same passion and give freely hundred of hours of their life to help others.
So... since you are a newbie, ...listen and smile 🙂
11-15-2005 03:15 AM - edited 11-15-2005 03:15 AM
Are you chilly charlie?
NO
Message Edited by kurt_come on 11-15-2005 03:16 AM
11-15-2005 03:53 AM