VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a lvmodel by script?

Solved!
Go to solution

Hello,

 

I'd like to know if it's possible and then how to create by script a model to run in veristand from a VI?

 

I have a soft that generate VIs by script, and I want the soft to generate also the lvmodels based on those VIs.

 

I hope I'm clear enough. Thank you for your help!

 

Luc.

0 Kudos
Message 1 of 4
(6,433 Views)
Solution
Accepted by topic author LucD

Possible yes.  API no.

 

Most items in LabVIEW's tools are found in the labview\project directory.  You'll find the top-level VI for the Generate NI VeriStand Model from VI menu item in labview\project\NI VeriStand\LabVIEW Model Generator.llb\LVSV Dialog.vi.

 

The VI is configured to Run When Opened.  You can open the front panel programmatically in order to view the block diagram.  What you do with the source code is at your own risk, NI does not currently support building LabVIEW VIs into models programmatically.  Please consider contributing this idea to the VeriStand Idea Exchange.

 

Steve K

Message 2 of 4
(6,424 Views)

Thank you very much Steve!

 

I'll try as you say. Apparently it's the only one solution to do it automatically.

I've added this idea to the VeriStand Idea Exchange.

 

Luc.

0 Kudos
Message 3 of 4
(6,410 Views)

how does one open a vi programattically to see a block diagram? and how does it get pass the vi password?

 

currently need to use this to procedurally generate simple model files

0 Kudos
Message 4 of 4
(1,552 Views)