NI VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

[2019 R3] Launching a project through Veristand API

Highlighted

Hi all,

 Veristand 2019 introduced a new project file format. If I open a project through the UI, it expects me to open a new (nivsprj) file or convert an old (nivsproj) file. However when I try to open files through the .NET API, I get:

  • an error (text follows) for the new format (nivsprj)
  • a success (project gets opened) for the old format (nivsproj)

That causes a sort of conmfusion for me, as now I don't know which file to keep/use.

 

I'm using 

NationalInstruments.VeriStand.ClientAPI.Factory().GetIProject()

function to open the project.

 

Error text (opening nivsprj with GetIProject()):

-307650: Error -307606 occurred at Project Window.lvlib:Project Window.vi >> Project Window.lvlib:Initialization.vi >> NIVSProj_Filemanager.lvlib:LoadDataXMLFile.vi >> NIVSProj_Filemanager.lvlib:LoadProjectXMLFile.vi
Possible reason(s):
NI VeriStand: The file does not contain a valid file format.

 

Any explanations and/or tips on automating the 2019 R3? Thank you in advance!

Piotr F.
Hardware Engineer @ ZF
0 Kudos
Message 1 of 4
(213 Views)
Highlighted

Hello iwane,

 

Have you had a chance to view this KB?

__________________________________________
The best way to thank, is to give KUDOS
Message 2 of 4
(145 Views)

Hello VA.KI,

 Thank you for the link! I haven't seen it yet. The error is similar, but not the same... In the KB, error location is in NIVS_DataStorage.lvlib:LoadDataXMLFile.vi; in my case the error pops up in NIVSProj_Filemanager.lvlib:LoadProjectXMLFile.vi - I suppose that the location matters. Veristand itself starts fine; the problem appears when launching a project from the API.

 

I think it might be an migration issue, as (maybe) not all features are already migrated to the new file format and both old one and the new one is required for the time being... I'd like to confirm it, though 🙂

 

Piotr F.
Hardware Engineer @ ZF
0 Kudos
Message 3 of 4
(126 Views)
Highlighted

Hello Piotr,

 

Fully agree, should be migration issue.

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 4 of 4
(120 Views)