LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can we use NI examples as Sub VIs?

Solved!
Go to solution
Hi all,
I am trying to use NI DAQmx Continuous Analog Input read example as a sub VI in my main application. I am not able to use it. Can any one please help me.

Thanks,
Manjunath Kamasani
Regards,
KM
0 Kudos
Message 1 of 7
(2,545 Views)

hi

 

Yes you can use the example VI in your code . But in order to avoid any change which you make to the example vi to get reflect in the examples itself

save the additional copy of the example VI and then use it as subvi

Message 2 of 7
(2,538 Views)

Continuous example? Then you have to either make sure that the call to it as subvi opens the front panel window. Otherwise, it will block indefinitely or until an error occurs....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 7
(2,508 Views)
Solution
Accepted by KevinKM

As mentioned earlier, make a copy of the example and then edit it to work as you need it.  For instance, I'm pretty sure the examples do not have the connector pane wired up.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 7
(2,498 Views)

Thanks ppl, it worked

Regards,
KM
0 Kudos
Message 5 of 7
(2,456 Views)

Hi

 

just for your info. Dont mark your own reply as solution. Mark the reply as solution from where you actually got help.

0 Kudos
Message 6 of 7
(2,386 Views)

And don't forget to give Kudos to those who helped.  That is like a "thank you" to us.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 7
(2,380 Views)