Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69059

about using global task

$
0
0

Hi there,

  I have been using labview 7 for long time and I didn't use task. Recently, I swtiched to CVI and that I created all need tasks upon the start of the application and reuse the tasks before the end of the application. Last week, I got a copy of labview 2013 and I am porting the old labview code to 2013. However, I came to a problem. Different from the compiled C code, the vi code need to be run each time when needed, if I create the task on the fly in the vi, it is pretty heavy. I would like to create the global tasks so it could be used everywhere anytime. The example found in NI said I could create those tasks in MAX. So my question is to use the task, do I only have to specify the name of task (created in MAX) as the IO channel to use it?

 

By the way, if I create a global task, do I have to clear the task at the end of the application? If I clear the task, will be global task removed from the MAX or not?

 

Finally, I wonder if it is possible for more than one vi using the same task in different time? For example, I created a global task for analog output. I run two vi, A and B. In A, it use the task to output analog voltage while B is doing something else. After A's done, B is using the same task for other output. Will they conflict any way? What happen if both A and B call the same task about the same time?


Viewing all articles
Browse latest Browse all 69059

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>