01-13-2010 04:41 AM
Hi,
1. I have many VIs with string constants.
2. Every string constant holds vaule (for example "GPIB::11:MASK ON" or "SWITCH::POWER DIS")
3. I do not want to open all of files (about 2000 files) and in manual way explore the constants'values
4. I want with some VI or perhaps tool list the directory that will include all of 2000 VIs and to get some LOG / RESULT file with values of those constants
The questions:
1. Does it possible at alll???
2. What is the format of VI file? Does it open?
3. Any hints how i can do it? Any suggestions? Proposals??
Thank you very much,
Yuri
01-13-2010 05:44 AM - edited 01-13-2010 05:45 AM
I have not simple soluce but only a crazy idea :
Export VI as VI Strings (VI Method) then search for each text file the corresponding info such as :
<BDCONTENT>
<CONTROL ID=81 type="String Constant" >
<DESC></DESC>
<TIP></TIP>
<PARTS>
<PART ID=11 order=0 type="Text"><LABEL><STEXT>TEST</STEXT></LABEL></PART>
</PARTS>
<DEFAULT><SAME_AS_LABEL></DEFAULT>
</CONTROL>
but I recognize it's long & delicate to develop it, surely very long in execution time...
It's only to help but I hope there exists a better way 😉
01-13-2010 05:48 AM
If i can export VI like STRINGS so i will can parse it!
Great idea! I did not know that we can represent VI like a STRING/XML format!
I will try it now!
Thank you alot!!!
01-13-2010 05:56 AM
01-13-2010 06:03 AM
Don't forget to specify TRUE as Export Diagram...
In fact, I used this method in the past to know in which version of LabVIEW was written a VI (first line of text file). I didn't find other method at this time...
But I prevent it's a very slow process and with your 2000 VIs you risk to wait a serious time.
01-13-2010 06:05 AM
Not so slow, i will LIST the directory and after it iteratively will send every file to CONVERTION without manual work 🙂
p.s. i suppose so ... 🙂
01-13-2010 06:11 AM
Ok, it's true that today, computer's technologies are faster than when I practised it (one processor with slow hard disk, only 4 years ago)...
01-13-2010 10:02 AM
Question regards conversion:
I need instead REFERENCE to present file to find way how i can give a REFNUM of any OPENED file (such as i can iteratively to give the list of the files .. and not to
manually seed it to every file...)
Any idea??? How i can do it?
Please see the attached picture of the issue
Thank you all!
01-13-2010 10:05 AM
01-13-2010 10:13 AM
Hm i did it but now other program? Could you please the attached picture why it happens?
Thank you alot!