LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Classes

Hello,

I'm trying to use classes with Labview to be allow using the same code further times simultaneously.

For exemple, I have a vi having an input parameter which is a condition for a case loop that do different actions depending of the input. The problem is that in standard programmation (LV), the program wait that the first instance of the vi finishes before launching the second instance of the same vi.

So, I would like to use the same vi twice at the same time. If the first instance is waiting in a while loop, the second instance would continue working by itself.

I tried to use classes to use OO instances but it didn't seem to work. I created a class in my project containing my code that is called twice in my main program, but it is still waiting in the first instance before launchin the second one.

Auriez-vous un exemple simple d'utilisation des classes avec action parallèles?
Do you have any ideas and exemples of how to programming to launch twice the same vi in parallel?

Thanks for your help

0 Kudos
Message 1 of 5
(2,556 Views)
No idea?
0 Kudos
Message 2 of 5
(2,529 Views)

Hi Scribeus.

You'll need to set your VI to be Reentrant in the Files->VI Properties dialog.

Regards BCL

Don't forget to rate a good Answer....
---------------------------------------------------------
Here should be some cool signature

But there's NOT

LabVIEW 2012-2017
---------------------------------------------------------
0 Kudos
Message 3 of 5
(2,508 Views)
Check out the attachment.......
Don't forget to rate a good Answer....
---------------------------------------------------------
Here should be some cool signature

But there's NOT

LabVIEW 2012-2017
---------------------------------------------------------
0 Kudos
Message 4 of 5
(2,502 Views)
Hello BCL,

that's exactly what I needed, thanks a lot...

I forgot this option for an unexplanable reason!?!?! I didn't use it for 8 years, maybe that's the reason!

Thanks again,

Scribeus
0 Kudos
Message 5 of 5
(2,487 Views)