The Daily CLAD

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

Re: CLAD2017 - Fundamentals - Can you carry me?

Active Participant

Assuming Numeric Value In is set to 1.  Which of the following VIs results in Numeric Value Out = 1?

 

NOTE:  More than one answer may apply.

 

a)

Rotate 1.png

b)

Rotate 2.png

c)

Rotate 3.png

d)

Rotate 4.png

Combined.png

Comments
Knight of NI

A, C


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

The discussions from the Advanced User Track is not over. Join in the conversation: 2016 Advanced Users Track
Member

The right answers are A and C, and here is the explanation of every case:Daily CLAD 11 Feb 2018 (2).pngDaily CLAD 11 Feb 2018.png

Member

A,C

Member

A & C

Member

A & C

 

(Rotate Left With Carry Function - http://zone.ni.com/reference/en-XX/help/371361P-01/glang/rotate_left_with_carry/)

 

(Default Value for Boolean is False http://zone.ni.com/reference/en-XX/help/371361P-01/lvconcepts/block_diagram_objects/)

 

In the given answers the shift register only can hold the 1 for the Output.

Member

A & C

B is wrong because carry input always false

D is wrong and to make it work correct you would have to reverse the array. (Number to boolean array function makes the least significant bit of the input the first (0th) element of the output.)

Member

A,C

Member

AC

Active Participant

Agreed A & C

Member

A & C