11-05-2007 11:12 AM
11-07-2007 10:22 AM
Hi Tom,
The LabVIEW runtime engine 8.2.1 can
support multithreading but it is not as optimised to do so as the 8.5 runtime
engine. In 8.5 you may specify which core each loop executes using but in an
8.2.1 runtime engine this is not possible, the system will decide for you.
With regards to your problem with the
loops, would it be possible for you to attach your code to a forum post then I
can have a loop at it for you?
Regards,
Ian C.
Applications Engineer
National Instruments UK
11-08-2007 12:58 AM
11-14-2007 04:32 AM
11-22-2007 04:58 AM
11-22-2007 05:29 AM
11-28-2007 06:38 AM
11-28-2007 07:40 AM
12-03-2007 04:07 AM
Hi Tom,
I’ve just heard back from my colleagues in the US. It seems that the behaviour can be seen if six parallel while loops write to a separate file, but no problems are seen if six parallel while loops all writing to the same file. I’ve attached the VIs that were used to replicate your issue.
Unfortunately we don't know the root cause of this, though it seems likely that a permanent fix will require R&D development to fix this issue. Can I ask just how urgent the resolution of this problem is; as I’m afraid at the moment I can only advise a possible work around:
If you are seeing the issue through viewing output files, you may want to try paring your code down to the point where you only write to one file while leaving the rest of the code intact. Since the dark runtime has no user interface, things like file I/O which by default run in the user interface thread may have trouble. Another thing to try is to change the execution system of the top-level VI (File»VI Properties»Execution) from ‘Same as Caller’ to ‘User1’ (or anything besides User Interface).
Hope this Helps,
Ian
12-03-2007 04:36 AM