If Creating a New Custom Device
- Install a version of the VeriStand Custom Device Wizard [EXTERNAL LINK] compatible with your LabVIEW version.
- Generate the Custom Device project template in the 64-bit version of LabVIEW.
- Verify that the project contains a Linux x64 target with the appropriate Engine build specification.
- Develop the Custom Device as required.
- Build the Engine build specification.
If Migrating an Existing Custom Device
- Obtain the source code for the Custom Device.
- Create a backup of all source files.
- Save the LabVIEW project.
- Review the LabVIEW project and determine whether a Linux x64 PXI target already exists.
- If the project already contains a Linux x64 PXI target:
- Open the project in the target version of LabVIEW.
- Verify the existing specifications.
- Continue to Step 10.
- If the project does not contain a Linux x64 PXI target, close the LabVIEW project, then open the .lvproj in a text editor such as Notepad++.
- In the generated RT CompactRIO Target - Linux x64 target definition, replace the target attributes with the attributes for a Linux RT PXI chassis. To do so, replace the following lines in the XML:
<Item Name="RT CompactRIO Target - Linux x64" Type="RT CompactRIO">
<Property Name="alias.name" Type="Str">RT CompactRIO Target - Linux x64</Property>
<Property Name="alias.value" Type="Str">0.0.0.0</Property>
<Property Name="CCSymbols" Type="Str">TARGET_TYPE,RT;OS,Linux;CPU,x64;DeviceCode,7735;</Property>
<Property Name="crio.ControllerPID" Type="Str">7735</Property>
<Property Name="host.ResponsivenessCheckEnabled" Type="Bool">true</Property>
<Property Name="host.ResponsivenessCheckPingDelay" Type="UInt">5000</Property>
<Property Name="host.ResponsivenessCheckPingTimeout" Type="UInt">1000</Property>
<Property Name="host.TargetCPUID" Type="UInt">9</Property>
<Property Name="host.TargetOSID" Type="UInt">19</Property>
<Property Name="host.TargetUIEnabled" Type="Bool">false</Property>
<Property Name="target.cleanupVisa" Type="Bool">false</Property>
with the following lines:
<Item Name="RT PXI Target - Linux x64" Type="RT PXI Chassis">
<Property Name="alias.name" Type="Str">RT PXI Target</Property>
<Property Name="alias.value" Type="Str">0.0.0.0</Property>
<Property Name="CCSymbols" Type="Str">TARGET_TYPE,RT;OS,Linux;CPU,x64;</Property>
<Property Name="host.ResponsivenessCheckEnabled" Type="Bool">true</Property>
<Property Name="host.ResponsivenessCheckPingDelay" Type="UInt">5000</Property>
<Property Name="host.ResponsivenessCheckPingTimeout" Type="UInt">1000</Property>
<Property Name="host.TargetCPUID" Type="UInt">9</Property>
<Property Name="host.TargetOSID" Type="UInt">19</Property>
<Property Name="target.cleanupVisa" Type="Bool">false</Property>
- Save the .lvproj file.
- Reopen the project in LabVIEW.
- Verify that the target now appears as RT PXI Target - Linux x64 in the Project Explorer and that it contains the expected build specifications.
- Remove any unsupported or unnecessary targets from the LabVIEW project and the Custom Device XML.
- This is done by deleting the <Source> sections that have a SupportedTarget attribute of Pharlap, VxWorks or Linux_32_ARM from the <CustomDevice>\<CustomDeviceVI>\SourceDistribution section within the XML.
- Under Build Specifications>>Engine Release for the Linux x64 PXI target, verify that RT Driver VI.vi is listed as Always Included in the Source Files section.
- Develop the Custom Device as required.
- Build the Engine build specification under the Linux x64 PXI target.