Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/23/2014 in all areas

  1. Hi Barlaw, it is possible in LabVIEW and you do not have to use OO (LabVIEW is not really good at OO). The keyword here is asynchronously calling VIs. It does exactly what you do in your JAVA example: You create a worker class (a LabVIEW VI that does the actual work, e.g. calculations). You start one or more instances of this worker-VI from you main VI (or even from the worker VI itself). I use this technology to let my users choose, how many heavy-duty-threads a program should start: only one if they are actively using their computer or up to 8 if they run the program during their lunch break or a meeting and they don't need the computer. In your JAVA-example, you use the call-and-forget strategy, e.g. the workers do not return anything. In LabVIEW you can also use the call-and-collect strategy. Here every worker returns values that you can receive via the wait-on-asynchronous-call node. This node can be placed anywhere in your program, it does not have to be in the VI that started the worker-VI. Regards, Sebastian
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.