06-24-2015 02:05 AM
Hi sir
I using one of below attached vi as a sub vi and transferring data from sub vi to main .During run time the data is updating sub vi but it is not tranferring to main vi ,is there any setting we need performed in labview for tranferring data from sub vi to main vi,curently i am using Lab VIEW 2013 Version.The blow folder i attached both Test main vi and Test Sub vi and dll call for sub vi.Its need full my M.Tech Project please give the sollution as early possible.
Solved! Go to Solution.
06-24-2015 02:12 AM - edited 06-24-2015 02:13 AM
Hi Shambhu,
During run time the data is updating sub vi
Correct.
but it is not tranferring to main vi
Correct. THINK DATAFLOW!
is there any setting we need performed in labview for tranferring data from sub vi to main vi
Yes. THINK DATAFLOW.
Don't use the indicators to transfer data to your main. Use a notifier or a queue instead…
please give the sollution as early possible
Was it early enough? 😄
06-24-2015 02:30 AM
Thank you very much your replay..Please give me example programme code how to use queue and notifier in sub vi to tranfer data from sub vi to main vi...
06-24-2015 02:32 AM - edited 06-24-2015 02:34 AM
06-24-2015 02:36 AM
Hi sir I am beginner in labview programming,please post me relevant code to transfer data from sub vi to main vi.Thank you very much your replay...
06-24-2015 02:36 AM
Hi sir I am beginner in labview programming,please post me relevant code to transfer data from sub vi to main vi.Thank you very much your replay...
06-24-2015 02:39 AM
Hi Shambhu,
when you are a beginner in LabVIEW I recommend to take the free online courses offered by NI on their website.
I also recommend to use the LabVIEW help and the ExampleFinder to learn usage of certain functions!
Btw. Using DLL callbacks and user-defined events isn't the perfect start for a LabVIEW beginner, how has problems to use rather simple notifiers/queues. Again I recommend to take the online courses!
06-24-2015 08:57 AM
Another method is to pass a reference of your indicator to your subVI and update it using a property node.
Another method is user events.