LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLD-R Exam 2, Questions 38 and 39

Solved!
Go to solution

Dear All,

Could you please help me with these two questions:

- Regarding the question 38, the vi that reads the binary files has the count input unwired on read binary file function, which is by default 1, isn't it? So I expected that on each iteration the function will return the first byte of the file which is 0, so answer D, While A is stated as the correct answer.

 For question 39, different operating systems is a requirement, however the asnwer that is reported true is A which uses Get System Directory VI which works under Windows only!

 

 

 

Download All
0 Kudos
Message 1 of 14
(3,515 Views)

Dear All,

Could you please help me with these two questions:

- Regarding the question 38, the vi that reads the binary files has the count input unwired on read binary file function, which is by default 1, isn't it? So I expected that on each iteration the function will return the first byte of the file which is 0, so answer D, While A is stated as the correct answer.

 For question 39, different operating systems is a requirement, however the asnwer that is reported true is A which uses Get System Directory VI which works under Windows only!

38.JPG39.JPG

 

 

 

Download All
0 Kudos
Message 2 of 14
(3,516 Views)
Solution
Accepted by topic author Ahmed.TUN

#38.  It is A.  You don't close the file, so the file pointer moves along with each read so you can get the next 1 byte in turn.  But actually it isn't one byte.  It is one element of whatever datatype you defined.  So if that constant is a U32, then you'd get a single U32 number, which consists of 4 bytes.

 

#39.  I would say A.  That uses the Get System Directory subVI to return a valid path to the user's documents, which should be freely writable by the logged in user unless their IT department really screwed them over and completely locked down the PC.

B and C are to paths that are very likely locked down to ordinary users unless they have admin rights.

D may not even be called by that exact path name because the literal path to the documents directories varies among different versions of Windows.  Are you sure that it only works in Windows?  Nothing in the detailed help of that subVI explicitly states that.  And I only use Windows, so I don't know how it would behave on a Mac.  It is very possible that if it only runs on Windows, the question was written in a way that the author may not have been thinking about non-microsoft OSes.  The fact of the matter is that MS Windows rules the world.  Sorry Mac dudes. 

Message 3 of 14
(3,501 Views)

Thank you so mch for your quick feedback RavensFan.

It's clear now regarding 38. It's a streaming from disk scenario

Regarding 39, It's true what you've said regarding B and C but A would work only in windows, that's why regarding the requirements I think it should be excluded and C will be the most modular choice

 

0 Kudos
Message 4 of 14
(3,488 Views)

Are you sure it will only work in Windows?  (Check my last message, as I edited it and you may not have seen the added sentences.)

 

I can guarantee that the answer is not C.  It does not work on my PC.    "Documents and Settings" goes back to either Win7 or WinXP days.  On my Win 10 PC, that path doesn't exist.  It is C:\Users\MyUsername\Documents.  Or since answer C is showing for AllUsers, it is C:\Users\Public\Documents.

 

 

0 Kudos
Message 5 of 14
(3,480 Views)

39: The answer should be c, because of:

 

a) Get Sytem Directory -> not available for RealTime

b) If built and used in run-time, VI may points to path inside EXE file

c) correct

d) only available for Windows

0 Kudos
Message 6 of 14
(3,462 Views)

@aptivo wrote:

39: The answer should be c, because of:


I am trying to remember all of the restrictions I ran into with saving things to the C:\Programs folder on a PC.  I want to say I ran into issues trying to save data to that folder.  Therefore I started saving my data to Public Documents (assuming Windows here).  I will have to experiment again to get my history refreshed.


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 7 of 14
(3,426 Views)

If building an installer you can select in the Source File Settings the folder attribute unlock for the containing folder where you'd like to install your application. All containing files and folders shall be write/modifiable.

0 Kudos
Message 8 of 14
(3,422 Views)

@RavensFan wrote:

Are you sure it will only work in Windows?  (Check my last message, as I edited it and you may not have seen the added sentences.)

 

I can guarantee that the answer is not C.  It does not work on my PC.    "Documents and Settings" goes back to either Win7 or WinXP days.  On my Win 10 PC, that path doesn't exist.  It is C:\Users\MyUsername\Documents.  Or since answer C is showing for AllUsers, it is C:\Users\Public\Documents.

 

 



Honestly, I didn't try it in Linux or Mac, but that what was mentioned in LabVIEW Core 2 : It works only in Windows

0 Kudos
Message 9 of 14
(3,414 Views)

@Ahmed.TUN wrote:

@RavensFan wrote:

Are you sure it will only work in Windows?  (Check my last message, as I edited it and you may not have seen the added sentences.)

 

I can guarantee that the answer is not C.  It does not work on my PC.    "Documents and Settings" goes back to either Win7 or WinXP days.  On my Win 10 PC, that path doesn't exist.  It is C:\Users\MyUsername\Documents.  Or since answer C is showing for AllUsers, it is C:\Users\Public\Documents.

 

 



Honestly, I didn't try it in Linux or Mac, but that what was mentioned in LabVIEW Core 2 : It works only in Windows


The Help says it won't work on RealTime.  So I left to assume it will work on Mac and Linux desktop.


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 10 of 14
(3,400 Views)