The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Typedef Propagation

Active Participant

Assuming all of the Data Point Array In and Data Point Array Out terminals are of the same type defined (typedef) type. 

Which of the following Block Diagrams is indicating the correct propagation of typedef information through the FOR Loop?

 

NOTE:  Some Block Diagrams may have been modified through the power of GIMP Smiley Wink.

Typedef Propagation.JPG

Combined.png

Comments
Knight of NI

Sine the array is the type def, the autoindexing will eliminate the type def propagation.  So B shows the coercion dot in the right location.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Member

As far as I understand, we have three kinds of tunnels here:
            * Shift Registers
            * Auto Index Tunnel
            * Standard Tunnel

 

Not answer a)
The second line inside the loop is an auto index tunnel. The data type inside the loop should have an array dimension := dimension – 1 (compared with data type outside the loop before)
So answer a has a wrong data type inside the For Loop.

=> in answer b, c, d it seems correct (for second line).

 

Not c) and not d)
Line 3 is a standard tunnel. The data type should not change by transition outside to inside the loop.

It remains b) for the correct answer.

 

@ Crossrulz
I can guess the coercion dots after you mention it. I would not be able to recognize them without your help (to mention it). Similar color and to small.
In my opinion in answer b) there shouldn’t be a coercion dot, because we have the same data type as before… (But obviously I am wrong).

 

Knight of NI

A.Bernau wrote: In my opinion in answer b) there shouldn’t be a coercion dot, because we have the same data type as before… (But obviously I am wrong).

 

But they are not the same type.  The indicator is defined by a type def.  The output of the tunnel is just a cluster.  Yes, they happen to have the same underlying data.  But they are defined in completely different routes and therefore we cannot guarantee they stay the same.

 

My personal opinion is that arrays should not be type defined.  The clusters they contain should be the type def.  That would eliminate some of this confusion and it makes it easier when you have to work on a single element of the array.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Member

OK, I should read and translate the headline before I try to solve the DCLAD ;-) And yes, your reasons sound comprehensible, so you convinced me. Thank you very much for your detailed Explanation!

Member

 

Hello everyone

 

Following the explanations above and after I had checked the exercise through labview, I agreed with the comments from @Crossrulz, which sum up the behavior of the VI.

Thanks

Tarciso Junior
+55 (11) 996-282-103
Skype: Tarciso.junior2
Email: Tsjabrantes@gmail.com
http://br.linkedin.com/pub/tarciso-junior/23/a83/463
Member

(B) is the correct option.

Thank you Smiley Happy 

Member

I'm new here and my answer is B Smiley Happy Wave from PH. 

Active Participant

Hi blink247, welcome.

Combined.png

Member

I will be taking the CLAD exam on monday steve. I've been studying daily clad 2weeks from now and It's fun though tricky sometimes Smiley Very Happy thanks steve. 

Member

b

Thanks & Regards,
Bharath Kumar