LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Which file format for a complex configuration file?


@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

 

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


I thought I would update this with new information... I just found out that MS Excel does in fact need to be installed. I am not sure what version is required, but the "free" version is good enough. 

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 21 of 31
(239 Views)

@Frozen wrote:

@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

 

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


I thought I would update this with new information... I just found out that MS Excel does in fact need to be installed. I am not sure what version is required, but the "free" version is good enough. 

 


I have been running it without Excel. You need to install the database connection from Microsoft.

0 Kudos
Message 22 of 31
(214 Views)

LV can interface with LibreOffice, sometimes it is even faster than Excel - LibreOffice Calc supports parallel writes to different areas of the same worksheet, that makes streaming data into it much faster.

0 Kudos
Message 23 of 31
(205 Views)

My order of preference,

  1. YAML
  2. JSON
  3. XML
  4. INI
  5. CSV
Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 Kudos
Message 24 of 31
(183 Views)

@Lior.Bilia2 wrote:

LV can interface with LibreOffice, sometimes it is even faster than Excel - LibreOffice Calc supports parallel writes to different areas of the same worksheet, that makes streaming data into it much faster.


Interesting! How do you interface with it?

0 Kudos
Message 25 of 31
(154 Views)

@mcduff wrote:

@Frozen wrote:

@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

 

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


I thought I would update this with new information... I just found out that MS Excel does in fact need to be installed. I am not sure what version is required, but the "free" version is good enough. 

 


I have been running it without Excel. You need to install the database connection from Microsoft.


Are you sure that you do not have Excel installed? That is what I thought too. Our CM recently re-imaged one of the test PCs and I was  tasked with find out what was not working.

- reinstalled database connection drivers from MS - no change

- re-installed our test APP - no change

- Had CM install the free* version of Excel - test app works.

 

Conclusion: It needs Excel installed (or something that gets installed with Excel)

 

* Free version of Excel requires a credit card 🙃

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 26 of 31
(128 Views)

@thomas-allibe wrote:

@Lior.Bilia2 wrote:

LV can interface with LibreOffice, sometimes it is even faster than Excel - LibreOffice Calc supports parallel writes to different areas of the same worksheet, that makes streaming data into it much faster.


Interesting! How do you interface with it?


I am also interested in this... I like keeping my options open.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 27 of 31
(126 Views)

@Frozen wrote:

@mcduff wrote:

@Frozen wrote:

@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

 

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


I thought I would update this with new information... I just found out that MS Excel does in fact need to be installed. I am not sure what version is required, but the "free" version is good enough. 

 


I have been running it without Excel. You need to install the database connection from Microsoft.


Are you sure that you do not have Excel installed? That is what I thought too. Our CM recently re-imaged one of the test PCs and I was  tasked with find out what was not working.

- reinstalled database connection drivers from MS - no change

- re-installed our test APP - no change

- Had CM install the free* version of Excel - test app works.

 

Conclusion: It needs Excel installed (or something that gets installed with Excel)

 

* Free version of Excel requires a credit card 🙃


Just ran it now on a computer that has never had Excel, LabVIEW 2025Q3, .... (pause to build anticipation)

 

It works!

 

You need to install the dB component, which probably gets installed with Excel.

 

Look at this message.

Message 29 of 31
(111 Views)

@mcduff wrote:

@Frozen wrote:

@mcduff wrote:

@Frozen wrote:

@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

 

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


I thought I would update this with new information... I just found out that MS Excel does in fact need to be installed. I am not sure what version is required, but the "free" version is good enough. 

 


I have been running it without Excel. You need to install the database connection from Microsoft.


Are you sure that you do not have Excel installed? That is what I thought too. Our CM recently re-imaged one of the test PCs and I was  tasked with find out what was not working.

- reinstalled database connection drivers from MS - no change

- re-installed our test APP - no change

- Had CM install the free* version of Excel - test app works.

 

Conclusion: It needs Excel installed (or something that gets installed with Excel)

 

* Free version of Excel requires a credit card 🙃


Just ran it now on a computer that has never had Excel, LabVIEW 2025Q3, .... (pause to build anticipation)

 

It works!

 

You need to install the dB component, which probably gets installed with Excel.

 

Look at this message.


From the link to the link...
"The Microsoft 365 Access Runtime enables you to distribute Access applications to users who don't have Microsoft Office installed on their computers or a version of Microsoft Office that doesn’t include Access. "

 

That is probably the missing part!

 

Now I just wish I had a computer (or VM) and the time to try it out on.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 30 of 31
(102 Views)