LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error in delete SubVI

Hello,

in the attachment there is a vi called "ShowMessage". this vi creates a copy of the message.vi.
the created message vi should be deleted after closing.the problem is to delete this vi.
if the DeleteTempVi.vi is called the path of the vi to delete is sometime wrong.

where should be the problem?


markus
0 Kudos
Message 1 of 6
(2,865 Views)
It's not at all clear what it is that you're trying to accomplish. I can see what it's doing, but not what it's trying to accomplish. Why do you need to copy a VI just to display a message?
0 Kudos
Message 2 of 6
(2,845 Views)
hello,

in my application there are many error- messages. if an error occurs a message will be shown, and the programm continous.
when i use the normal message vi the programm stopps until the user accept the message on the screen.
so my idea was to create a vi which will be copied, shown and deleted when the used pushed the button.

unfortunately, i think,  the delete.vi sometimes doesn't works right.

markus
0 Kudos
Message 3 of 6
(2,834 Views)

Hi Markus

That's no problem - you just have to show the message in a separate loop, so the rest of the application can execute without any problem. That's one of the biggest advantages of LV - make loops run in parallel very easily.

I attached a very simple vi, that shows what I mean.

Hope this helps.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 6
(2,830 Views)
hello,
thanks for your answer.
i've found the problem in my vi's but can't solve it.
i found out that the delete.vi doesn't delete the actual vi. it deletes the vi created before.
the curious thing is that the debugger shows the right path in the deletepath- object (deletetempvi.vi) but wants to delete the vi before.

i hope someone can help me.

markus
0 Kudos
Message 5 of 6
(2,811 Views)
I'm sorry, but I don't mean to be blunt, but the right way to fix your problem is to not do it the way you're trying to do it - it simply doesn't make sense. Take a look at becktho's example.
0 Kudos
Message 6 of 6
(2,802 Views)