> I have one device, I would like one loop to run and wait a given
> ammount of time - this loop will query the device for the data
> displayed in the UI, another loop is to query the device at other
> differant times and log the data to a file.
>
> Say for example the view is updated with fresh data every 1/10th of a
> second and the log is written with data every 1/2th a second.
>
> How can I get these to run concurently?
>
> For example, in java I would create two differant threads and set the
> sleep time in both to differant times, calling start() on each would
> give me two differant threads within the same program. What is the
> process to get this kind of "process detachment" behaviour in LabView?
>
I agree with the other post that you probably don
't need parallel tasks
here, but if you do, here goes.
Make two loops, side by side, over and under, just not one inside the
other. The two loops will multitask and run in parallel as long as they
don't have dataflow connections. Drop a Wait Ms node inside the loops
to control the loop speed, and you pretty much have the same as the Java
solution, but simpler IMO. If the loops need to synchronize for some
reason, there are synchronization primitives in the advanced palette,
but again, it will likely be easier to put the tasks in the same loop
and simply make a modulo counter to control how often the various tasks
fire.
Greg McKaskle