#1
Posted 10 October 2011 - 02:09 PM
Thanks for you suggestions.
John
#2
Posted 10 October 2011 - 05:59 PM
We are looking to distribute our code. I was wondering if people had suggestions on the best ways to generated compiled help files (chm) for a VI library. I know there are some instructions in the LV help but thought there might be an "all-in-one" tool out there or some handy hints from people that have been doing this already.
Thanks for you suggestions.
John
I have used in the past HelpMaker from vizacc.com. It used to be a free tool but there was some hickup in who is going to maintain it some time ago. Not sure about the current state, it got confusing and I haven't used the tool in a while.
Rolf Kalbermatter
CIT Engineering Netherlands
A division of Test & Measurement Solutions
#3
Posted 10 October 2011 - 06:04 PM
#4
Posted 11 October 2011 - 04:55 PM
Also keep an eye on this document as we will soon be releasing a free little tool that analyzes a collection of VIs and creates HTML files similar to the detailed help for LabVIEW VIs. We have had a few of our partners use this along with FAR to create very nice looking Help docs...
LabVIEW Add-on Dev Center | LabVIEW Tools Network
#5
Posted 14 October 2011 - 08:23 PM

POPULAR
LabVIEW Add-on Dev Center | LabVIEW Tools Network
#6
Posted 24 October 2011 - 11:27 PM
https://decibel.ni.c.../docs/DOC-18765
I am able to complete steps 1 - 3 (found in the same link) but after I tag the VIs and select "Generate Files" I receive an error message that reads similar to: "PERL was not able to generate files for allVI.xml." However, when I open the folder that I had designated for my files, I am able to find and open the .xml files of my VIs. I do realize that I skipped step 4-4, but do not know how to add the required tag before any .xml files are generated. Does anyone know how I may go about adding this tag? Also, because of the error that I get when I generate my .xml files, I am unable to move to the next steps and convert my .xml files to .html files. Any help is much appreciated.
Thank you.
#7
Posted 25 October 2011 - 03:29 PM
For this error, do you see a 'VI errors.txt' or '_errorlog.txt' file in your output directory? Could you post the contents for me if this log file?
To be clear, the steps 1-3 you're referring to are steps 4-1 to 4-3, correct? The error is then reported when you click 'Generate Files', which will parse the VIs...what version of the ActivePerl community edition did you install?
Thanks,
-Bob
#8
Posted 25 October 2011 - 05:03 PM
I do not have any .txt files in my output directory. My output directory consists of ent files, html documents, JScript script files, xml documents, xsd files, and xsl stylesheets. I have completed steps 1 - 3 and am currently having trouble with step 4. Specifically, I am able to complete steps 4-1 through 4-3 but do not know how to execute step 4-4 or step 5. I skipped these two steps and tried to generate the xml files by clicking "Generate Files." This is when I received the error message and found my output directory full of files with the extensions above. Do you know how to add the 'topLevel=True' tag to the xml created for the top level palette? Also, do you know how to include the top level .mnu file for the palette? I am confused as to where to find this created xml file if the xml files are not generated until step 6.
I have installed ActivePerl community edition version 5.14.2.1402. Please let me know if you need additional information.
Thank you for your help.
#9
Posted 25 October 2011 - 07:29 PM
If you do not have an mnu file to document (it will create table of contents similar to documentation in the LV help, with tables representing the palette structure), for now create your 'allVIs.xml' with:
<?xml version="1.0" encoding="iso-8859-1"?>
<allvis>
<vi filename="Convert_to_LabVIEW_Array.xml" />
<vi filename="Find_Object_Children.xml" />
<vi filename="Return_Child_Value.xml" />
</allvis>
Where you replace the filename with the filename of your VI XML files. Then try the next step. I'll try to resolve this issue in the meantime and put out a new package.
-Bob
#11
Posted 26 October 2011 - 01:08 AM
Attached Files
#12
Posted 27 October 2011 - 06:00 PM
I have resolved the issue but now need your help with something else. After I had completed all of the steps I was able to view my chm file. I wanted to link this to the LabVIEW Help that a user selects from the main screen of LabVIEW (Help - LabVIEW Help). Within FAR, I used the help express wizard to specify the folder to be compressed, the title of the help window, the home page, and the destination help file. I then completed step 10 by specifying the directories of VIs, text files, and help file path. However, I somehow managed to believe that the destination help file should be the same as the help file path and after I restarted LabVIEW looking for my chm file within Lab VIEW Help I only found my chm file. All of the other files were gone. I am able to open the original chm files that were located in LabVIEW Help by searching in the help folder. In order to reverse this process and revert LabVIEW Help to its previous state, must I link all original chm files back to the lvhelp chm? Any help is much appreciated and I thank you for your help!
#13
Posted 01 November 2011 - 03:58 PM
Thank you for your help.
#14
Posted 10 November 2011 - 12:11 AM
I would like to remove the bug in this code to prevent the need of manually entering an attribute for each problematic file. I am not sure why this works for some but not all of my VIs but if anyone can help it would be much appreciated. Thank you.
#15
Posted 10 November 2011 - 03:29 PM
Sorry for the lack of a reply from my end, I thought I'd set this thread to notify me when a response is posted...
- You will end up with one .chm file to install into the \help\ directory. This generated .chm will not be linked to from any of the .chm files shipped with LabVIEW, but LabVIEW will auto-populate the 'Help' menu with an entry for your generated .chm. We do not ship the HTML Workshop project file for our help documents with LabVIEW, so I strongly advise against tampering with those files.
- I am not sure why opening a .chm would ever refer to a .mnu file. Where exactly does this error occur? In the xml files with _pal, make sure your VIs are all listed correctly, there are also log files created when the xml and html files are generated with information about items that were not handled correctly...do your log files show anything?
- When is the parameters.xml error reported? I'll see if I can post the code unlocked so we can troubleshoot further.
#16
Posted 10 November 2011 - 06:08 PM
Thank you for the reply. I have resolved the first two issues but still receive the parameters.xml error. As I said before, this only happens some of the time. The error messages are reported when I select "Generate" on the "Generate Files" tool. The first message says "The parameters.xml file contains an empty name attribute. Please fix the file and recompact." The second message confirms the first and says "not well-formed (invalid token) at line 2, column 171, byte 279." This line within the parameters.xml file ends with <parameter id=""</parameter>, which clearly shows the empty name attribute. At other times when I do not receive this error, this line is complete and does not have an empty name attribute. Lastly, the error message directs me to line 187 of Parser.pm and line 51 of ListSpecifiedDoctypeFiles.pl. Do you think I need to change the code on either of these lines in order to resolve this issue?
#17
Posted 10 November 2011 - 06:43 PM
Is there anything unique about the attribute/name that isn't generated in the parameters file? Is it a standard VI with a fairly normal name or is there something to it that could be throwing off the scripting behind generating the parameters xml file? Does it always occur with the same parameter?
As mentioned, I need to seek approval to open the tools as there are some private methods used -- I'll try to just lock down the sections of code R&D does not want me to release and open the rest of it up.
-Bob
#18
Posted 10 November 2011 - 06:59 PM
Thank you for your help.
#19
Posted 18 March 2013 - 11:16 AM
Probably you could also try HELPer from http://vigods.com/to...Per/helper.html. It's NI certified toolkit for doing exactly what you want. And arguably, with much less fuss over it than in mentioned above solution. Just try it.
#20
Posted 18 March 2013 - 12:39 PM
Probably you could also try HELPer from http://vigods.com/to...Per/helper.html. It's NI certified toolkit for doing exactly what you want. And arguably, with much less fuss over it than in mentioned above solution. Just try it.
This doesn't appear to be "exactly" what was asked for. The tool you linked to does not generate CHM files at all (correct me if I'm wrong) it only makes HTML help files.
"Maybe Hoovah is really Crelf's alter-ego, which he uses to irk people?" - Gary Rubin
"Seemingly minor changes....can mean the difference between a working app and a quivering heap of unresponsive code." - David Boyd













