ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X-NET: Create a database programmatically

Hi!

 

Once there is a database / alias, there are VIs to create/delete/modify objects, and even a VI to save the database.

 

But I don't see a way to create new database files / aliases from scratch programmatically. They always require an existing database file.

 

Any idea?

0 Kudos
Message 1 of 3
(1,636 Views)

I think this example shows how to start without an existing database file. I believe the trick is to use the ":memory:" database. 

 

can_db_example.png

0 Kudos
Message 2 of 3
(1,604 Views)

I'm not sure you are asking the right question here. The editor or IDE you are using shouldn't dictate how you make a database. You should look for guides to ORMs like Entity Framework or the likes.

0 Kudos
Message 3 of 3
(1,594 Views)