LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Which file format for a complex configuration file?

I agree that JSONtext is easiest.

greetings from the Netherlands
Message 11 of 20
(1,404 Views)

Well sounds like JSON is fairly unanimous.

 

Any recommendations on the libraries to use? By default I would avoid the standard Labview libs are they usually are fairly basic.
A quick look on VIPM show quite a few of them, what should I consider other than the amount of downloads (Or the fact that it came from LAVA/JKI) for my choice?

 

Thanks.

Vincent.

 

VinnyAstro_0-1710752488814.png

 

0 Kudos
Message 12 of 20
(1,362 Views)

The fact that "JSONtext" has been mentioned 4 times in the thread should give you a hint 😉.

I've not explored all functions, but I've always found everything I needed in its palette, including malleable VIs that allow very elegant implementations.

Message 13 of 20
(1,347 Views)

@raphschru  a écrit :

The fact that "JSONtext" has been mentioned 4 times in the thread should give you a hint 😉.

I've not explored all functions, but I've always found everything I needed in its palette, including malleable VIs that allow very elegant implementations.


That's a fair point haha

I've focused on JSON and not what's after 🙂

 

Thanks a lot for all inputs!

0 Kudos
Message 14 of 20
(1,332 Views)

"Use 1 Excel workbook..."

 

I chose this path. Not everyone is aware that Excel spread sheets can by accessed like a database.

However, my application only ever reads from the file and stores any HW specific info (COM ports, instrument address...) in an ini file.

 

Excel Connection String in LV.png

 

No need for Excel to be installed on the deployment PC either.... unless of course you want to make changes to the file locally.

---------------------------------------------
Certified LabVIEW Developer (CLD)
There are two ways to tell somebody thanks: Kudos and Marked Solutions
Message 15 of 20
(1,309 Views)

@Frozen wrote:

"Use 1 Excel workbook..."

 

I chose this path. Not everyone is aware that Excel spread sheets can by accessed like a database.

However, my application only ever reads from the file and stores any HW specific info (COM ports, instrument address...) in an ini file.

 

Excel Connection String in LV.png

Excel Connection String in LV.png

No need for Excel to be installed on the deployment PC either.... unless of course you want to make changes to the file locally.


Dang, I had no idea. Do you have any examples of this? I see the link in the image, but I'll be honest that's all Greek to me.

0 Kudos
Message 16 of 20
(1,248 Views)

@BertMcMahan wrote:

Do you have any examples of this?


I didn't know about this possibility either and tried it out.

image.png

Download All
Message 17 of 20
(1,199 Views)

@Frozen  a écrit :

"Use 1 Excel workbook..."

 

I chose this path. Not everyone is aware that Excel spread sheets can by accessed like a database.

However, my application only ever reads from the file and stores any HW specific info (COM ports, instrument address...) in an ini file.



I didn't know this thanks a bunch! 
For other projects we've always exported everything first as a .csv, making it a nightmare for version control and formatting ....

 

I think I will still go for the JSON solution specifically for this configuration though as it seems more flexible and integrated on the labview side.

But I will definitely use this elsewhere!

0 Kudos
Message 18 of 20
(1,189 Views)

That's AWESOME! I had no idea!

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 19 of 20
(1,010 Views)

JSON all the way. The JSONext library allows you to plug almost any cluster, and it will parse it into a JSON string. This is especially useful if you want to use any web based interface - Transferring data from LV to a Javascript tool becomes trivial.

0 Kudos
Message 20 of 20
(988 Views)