I've written a VI for NXT, using the NXT Toolkit, which contains too while loops, which are intended to run in parallel. The first loop drives and steers motors B and C depending on ultrasonic sensor readings and the second loop does some collision detection using the touch sensor.
The first loop works fine, but the second one seems to be execute never or at all only very sporadically.
I've already done the following this to fix this with NO success:
Give loop execution priorities, by using NXT delays in the loop
Move each loop into a separate subVI and built a main VI, which only calls both subVIs.
Both methods yielded no success. How can I accomplish parallel execution of both loops ? See attached VI for details.
I implemented the same program in NXT-G (Lego out-of-the box software), there it works also fine !
I'll reload the LV program later and do some tests, at the moment I have 7.1.1 not installed here.
P.S.: By the way ... I also work for Philips (Medical Systems Böblingen) and we had some mail exchange some years ago, reagarding a decision about LV/TestStand as our new testplatform 😉🙂 It took just a few posts to recognize you ... the world is small !