09-11-2012 12:08 PM - edited 09-11-2012 12:19 PM
im using current vi's path like the answer to question# 34 in the CLD-R sample exam, but does not work? can anyone explain...
here is what i got, it's trying to append to the main vi itself....
the correct vi is....
does it have anything to do with it being a "LV 2011 ser. pack1, development system"? or is question #34 the wrong answer? Append File Path for a File in the Same Folder
09-11-2012 12:17 PM
I'm not digging up the exam that you referenced, but if it is saying what you said it is, the exam is wrong (not a big surprise). The Current VI's Path is the path to the VI itself. So it would be "c:\temp\blah.vi" (just as an example). You need to strip off the VI name in order to get its folder. It has always been this way.
Now in the EXE, the rules are a little different since the VI is inside of the EXE. It gets a little more complicated.
09-11-2012 12:22 PM
@crossrulz wrote:
I'm not digging up the exam that you referenced, but if it is saying what you said it is, the exam is wrong (not a big surprise). The Current VI's Path is the path to the VI itself. So it would be "c:\temp\blah.vi" (just as an example). You need to strip off the VI name in order to get its folder. It has always been this way.
Now in the EXE, the rules are a little different since the VI is inside of the EXE. It gets a little more complicated.
Always you come first before I click post you are doing that 🙂
09-11-2012 12:24 PM
P@Anand wrote:
Always you come first before I click post you are doing that 🙂
When the boss isn't looking, it's easy. Besides, other people do it enough to me.
09-11-2012 12:27 PM
Ok, now that I've looked at the exam, I see what the test makers are going for. Based on their intention, A is the correct answer. However, the implementation is wrong.