niveristand-custom-device-development-tools
niveristand-custom-device-development-tools copied to clipboard
SysDef.UpdateCDVersionFromXML Error 7 When CD is Built into PPL
This VI will always return Error 7 when it is used in a Custom Device which is built into a packed project library.
The VI attempts to find the Custom Devices folder and it does this by taking the current VI's path and stripping it a maximum of 5 times until we're in the correct folder. This works well when everything is flattened into an LLB but this doesn't work with it's built into a PPL because the VI path is too deep and the strip path doesn't iterate enough times to make it out of the .lvlibp. For reference here is the VI's path when called from a PPL (only strips to vi.lib).