LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Import VI String method

Hello!

Well, I think changes between languages is a tedious work in LabVIEW. I'm having a lot of problems with it and I don't understand why.

For example, this is too difficult to keep when you modify your vi because you must modify or generate again a file with export method and then modify it for each language, there isn't a way to update the old file without generating it again.

And finally, I'm having a problem now. Well this is: When I open an vi from another one with run method I use import VI Strings before and all is ok, the vi opens, but when I close the vi just opened and try to open again from the another vi it doesn't work and generate the error I attach here, why? can anyone help me please?

I attach here a piece of code where you can see how I use the import VI Strings and run methods when I try to run the Vi I want.

Thanks very much,

ToNi.
0 Kudos
Message 1 of 7
(3,423 Views)
Hi again,

I attach here the vi that load the file and pass it to the import VI Strings invoke node.  The file is found by this but the error I mentioned previously is generated by the Import VI Strings method.

I hope somebody can help me.

ToNi.
0 Kudos
Message 2 of 7
(3,422 Views)
Hi again 😉 sorry,

Now I tell Import VI Strings to log the error in a file. I attach here the language file and the log error file generated by Import VI Strings method. As you can see in the log file you can see that the first time It loads is all ok but the second time it loads it says.... Error occurred while parsing for Multicolumn Listbox object........ and I don't understant why. I don't modify the nothing of the vi since I generate the file with export method in the menu tools->advanced....


See it.
0 Kudos
Message 3 of 7
(3,418 Views)
Hi,

I think which is the problem. The problem is when I open a reference with open reference node the second time. The first time it goes ok and the another vi opens but when I close this vi and return to the main vi and then I want to open the vi by second time... this doesn't work because I think there is a problem when I get the reference to it..... when I close that vi I do what I attach here from the vi that I want to close and unload, is it correct? see picture below. Or is there another method to completely unload a vi from memory?


Thanks,

ToNi.
0 Kudos
Message 4 of 7
(3,407 Views)
Hi,

The problem is the block 'create child N2.vi' that appears in the picture I attach here before. If I remove it, see the new sample I attach It works. It seems that Import VI Strings method is not compatible with this block 'create child N2.vi' Why?

Thanks,

ToNi.
0 Kudos
Message 5 of 7
(3,399 Views)
I attach create child N2.vi block.

Sorry,

ToNi.
0 Kudos
Message 6 of 7
(3,397 Views)
Hi,

I attach here a complete example here, but it doesn't work because I use a database connectivity with MySQL and I can't attach the database here sorry, but all the code is here (is a little example I have done for you).

My problem persists, I don't know what to do. I have tried all the possibilities but it doesn't work yet.

I do the following:

1.- I run my example.vi
2.- I press button SHOW VI and then, the Modificar_pla_de_treball.vi appears (see sample1.jpg). Until here all ok!!
3.- Then I press button "D'acord" from the vi that has appeared and then it closes and return to the main window (see sample2.jpg)
4.- I press button SHOW VI again and.... an error message appears, see sample3.jpg, I press OK, and another error message appears (see sample4.jpg).

As you can see in this example, the first time all ok, it works, but the second time it doesn't work and I don't know why.

Could someone help me please?

Thanks very much to everybody,

ToNi.

0 Kudos
Message 7 of 7
(3,385 Views)