LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display image in sub_VI

I am running a Linux (no NI Vision support) LabVIEW application where I have a “main” DAQ VI collecting raw u8 data. I want to be able to display the data as an image in a sub-VI. The first time I call the sub-VI to display the first image everything works fine, however, on the second and subsequent calls to the sub-VI I get an error saying that the sub-Vi is already open and needs to be closed before being called. I don’t have the screen space to adequately display images in the main VI and still have the DAQ controls visible.

 

Is there a way to have one VI continuously collect and format image data and then display the data in a second VI?

 

Thanks in advance

0 Kudos
Message 1 of 11
(3,964 Views)
Hi davida2000,

I have attached a VI that I believe does what you would like.  Please take a look at this, and let me know if I have misunderstood you.  If so, please attach a simple example that displays this issue you are seeing.
Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 2 of 11
(3,937 Views)

Thank you for the reply Smiley Happy

 

In the example you provided the sub-VI is called, executes, and terminates. I need to be able to repeatedly call a sub-VI that does not terminate. I need to do this so that I can update an image and allow an operator to view the image (and perform event functions on the image such as mouse click).

 

Is there a way for a main VI to call a sub-VI and not have to pend (wait) for the sub-VI to complete execution?

Is there a way to call (i.e. pass data) to a sub-VI that is already running?

 

Thank you again for your help

0 Kudos
Message 3 of 11
(3,928 Views)
Hi davida2000,

Please take a look at the following example, and let me know if you need the program to do something else. 

If this does not accomplish the desired task, please post an example of what you are doing and the issue you are having with your example.
Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 4 of 11
(3,914 Views)
Thank you for your help
 
I can not see an attachment for the mentioned example could you please resend?
 
Thanks
0 Kudos
Message 5 of 11
(3,910 Views)
Hi davida2000,

Sorry about that.  I just realized that I did not attach the file.  Please take a look at this, and let me know if you have any questions.
Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 6 of 11
(3,901 Views)

Perfect!

 

That’s exactly what I needed Smiley Happy

 

Thanks for all your help

0 Kudos
Message 7 of 11
(3,899 Views)
davida2000,

I'm glad to hear that this example was able to help you.
Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 8 of 11
(3,884 Views)

Hi Ching,

Can you please suggest how to attach the VI file to our question / answer.

The attachment shown below does not work.

THANKS

0 Kudos
Message 9 of 11
(3,855 Views)

nnnsh

You just click on the Browse button and select the file you want to attach. DO NOT click the preview post. This will clear the attachment field and you will have to re-attach it.

0 Kudos
Message 10 of 11
(3,848 Views)