NI myRIO App Development

Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.
Highlighted

Creating myRIO Project Template XML

A sample XML document is available in the completed myRIO application example; see the example and tutorial here: myRIO Application Developer's Tutorial and Example

General details on the project template XML are available here: Using Custom Templates and Sample Projects to Develop LabVIEW Projects.

Your XML must contain the following fields.  Bold text indicates areas that should be updated; non-bold fields should be included and should not be changed:

<MetaData>

<ProjectTemplate>

  <Title localize="yes">Application Name</Title>

  <Description localize="yes">Short Application Description</Description>

  <Filters localize="yes">Sample Projects:myRIO</Filters>

  <Keywords localize="yes">myRIO</Keywords>

  <LocationPath>myRIO/Application Name</LocationPath>

  <ProjectPath>Application version/Application Name.lvproj</ProjectPath>>

  <ListboxImagePath>images/Application Icon.png</ListboxImagePath>

  <DocumentationPath>Application version/documentation/How to Run Application Name.html </DocumentationPath>

  <MetaDataClass>../scripting/myRIOMetaDataObj/myRIOMetaDataObj.lvclass</MetaDataClass>

  <CustomVIMode>AfterPage2NoUI</CustomVIMode>

  <CustomVIPath>../scripting/myRIOMetaDataObj/PostCopyScripting.vi</CustomVIPath>

  <HidePrefix>True</HidePrefix>

</ProjectTemplate>

</Metadata>

Application Name is the name of your application as you want it to appear in the Create Projects window.

Application Name.lvproj is the name of the LabVIEW project containing your source code.  It is recommended to name your .lvproj with the same name as your Application Name.

Short Application Description is a short summary of what your application does; please limit to 1-2 sentences.  NOTE: This short description MUST include info on supported targets, ex. "Supports myRIO 1900 and 1950 targets."

Application Version is the version of the application being installed, i.e. "myRIO v1.0."


Application icon.png must be a 32x32 pixel icon associated with your application, and will populate in the Create Projects window.

How to Run Application Name.html is the name of the instructive document on how to run your application.  Replace Application Name with the name of your application.

<Location Path> is relative to the <LabVIEW 20xx>\Project Templates\Source directory.

<Project Path>, <ListboxImagePath>, <DocumentationPath> are relative to <Location Path>.

There are additional customizations available, but it is recommended to keep the XML identical to the template unless you are very familiar with creating project templates.

See Also:

Using Custom Templates and Sample Projects to Develop LabVIEW Projects.

Creating and Distributing Custom Templates with the New Create Project Dialog.

Patrick
CLA
0 Kudos
Message 1 of 1
(3,215 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.