LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to put a timed structure in a parallel for loop, error -808

If I try to place a Timed Structure in a Parallel For Loop, the TS needs a different structure name per instance to prevent collisions. However, setting the Structure Name node  to something unique per instance doesn't work, I get error -808. Have I missed something?

 

ParallelTimedStructureError.png

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 1 of 9
(3,449 Views)

I get the same error even with N=1.

 

Marco

0 Kudos
Message 2 of 9
(3,442 Views)

That got me thinking - something to do with the number of compiled parallel instances.

Indeed, the compiler creates a number of parallel instances of the for loop in the compiled code (in my case 8), and uses the number requested at the Parallel Instances terminal (just under the Iterations terminal), which is set to 2. Therefore the compiler has created 8 instances of the Timed Structure, each in its own for loop instance, but they all have the same defined Structure Name. When launched, there is an immediate conflict because they can't share the same name, and error -808 is launched before the set Structure Name function can change it. Hence the error still shows when requesting only one instance, because the other seven still exist.

 

I guess this means you can't have Timed Structures (or Timed Loops for that matter too) in a Parallelised For Loop?

 

ParallelTimedStructureErrorProperties.png

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 3 of 9
(3,439 Views)

@Thoric wrote:

I guess this means you can't have Timed Structures (or Timed Loops for that matter too) in a Parallelised For Loop?

 


 

I'm afraid you are right,

but then why the "find parallelizable loops" tool doesn't warn us of the issue?

 

Marco

0 Kudos
Message 4 of 9
(3,428 Views)

Hi Thoric,

 

I've replicated the issue and will be submitting a corrective action request when I can to R&D, who should decide on the best course of action.

 

I will post the reference when it is available.

Regards,

Ben Clark
Message 5 of 9
(3,395 Views)
Thanks Ben 🙂
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 6 of 9
(3,364 Views)

No problem, It's now in the capable hands of R&D!

Regards,

Ben Clark
Message 7 of 9
(3,328 Views)
Any sign of a CAR# yet?
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 8 of 9
(3,308 Views)

Yes sorry, I did say I was going to post that but I managed to miss it.

 

It's CAR #374805

Regards,

Ben Clark
Message 9 of 9
(3,288 Views)