Certification

cancel
Showing results for 
Search instead for 
Did you mean: 

CLD-R Exam, Question 1

Solved!
Go to solution

1. Consider the following scenario: You must create a control system where a PID calculation determines the value of an analog output based upon an analog input and a double-precision setpoint. Which of the following is the most appropriate mechanism to transfer the setpoint from your user interface loop to your control loop?

a. A queue with a data type of analog waveform.

b. A functional global variable with logic to hold the maximum.

c. A global variable

d. A queue with a data type of double.

The answer is C. I know a global variable can transfer data from one VI to another. I don't know what the meanings of the user interface loop and control loop are? Are they two different kinds of VIs? Thanks!

0 Kudos
Message 1 of 8
(6,278 Views)

They aren't two different VI's.  They are the description of whatever purpose a while has to exist.  In this case, one while loop was designed to handle the user interface.  The other while loop was designed to do the PID control.

 

Descriptions of other while loops might include:  data acquisition, data analysis, data logging, communication with other devices, .....

0 Kudos
Message 2 of 8
(6,266 Views)

Leisure_ksj,

 

What level of certification do you have? The CLD-R is a recertification exam for those who already have a CLD certification which is expiring or has recently expired. I would have thought that someone with a CLD would be familiar with multiple loops within a program as this is a rather basic concept.

0 Kudos
Message 3 of 8
(6,249 Views)

Thanks. And why is d wrong?


@RavensFan  已写:

They aren't two different VI's.  They are the description of whatever purpose a while has to exist.  In this case, one while loop was designed to handle the user interface.  The other while loop was designed to do the PID control.

 

Descriptions of other while loops might include:  data acquisition, data analysis, data logging, communication with other devices, .....


 

0 Kudos
Message 4 of 8
(6,229 Views)
Solution
Accepted by topic author Leisure_ksj

It is a matter of the type of data you are dealing with.  In the simplest form, you have tags (single point, only care about the latest value), messages (intermittent, N to N communication, can be multiple kinds of data), and streams (constant data transfer, typically 1 to 1, single data type).  A queue is perfect for a stream.  But a simple PID set point is a tag.  Global Variables are one of the most efficient forms for tag communication.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 8
(6,227 Views)

I passed the CLD in Chinese exam. In this question, if let me transfer data between two loops, I prefer to use queue or local variable. I chose D but the answer is C. So I asked the simple question. Maybe I need to improve my English too.


@johntrich1971  已写:

Leisure_ksj,

 

What level of certification do you have? The CLD-R is a recertification exam for those who already have a CLD certification which is expiring or has recently expired. I would have thought that someone with a CLD would be familiar with multiple loops within a program as this is a rather basic concept.


 

0 Kudos
Message 6 of 8
(6,225 Views)

@crossrulz  已写:

It is a matter of the type of data you are dealing with.  In the simplest form, you have tags (single point, only care about the latest value), messages (intermittent, N to N communication, can be multiple kinds of data), and streams (constant data transfer, typically 1 to 1, single data type).  A queue is perfect for a stream.  But a simple PID set point is a tag.  Global Variables are one of the most efficient forms for tag communication.


Thanks very much! That's what I want.

0 Kudos
Message 7 of 8
(6,223 Views)

@Leisure_ksj wrote:

I passed the CLD in Chinese exam. In this question, if let me transfer data between two loops, I prefer to use queue or local variable. I chose D but the answer is C. So I asked the simple question. Maybe I need to improve my English too.


@johntrich1971  已写:

Leisure_ksj,

 

What level of certification do you have? The CLD-R is a recertification exam for those who already have a CLD certification which is expiring or has recently expired. I would have thought that someone with a CLD would be familiar with multiple loops within a program as this is a rather basic concept.


 


OK. I started to suggest that perhaps there was a language issue. Crossrulz answer is correct - queues are overkill to pass a setpoint. A local variable would be OK, but that is not one of the selections. The question really is about getting you to think about the data requirements.

0 Kudos
Message 8 of 8
(6,212 Views)