LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lettura da un file di testo e confronto

Buongiorno a tutti, ho poca esperienza con Labview e avrei bisogno di sapere se è possibile selezionare un file di testo e cercare in questo file di testo se un codice che inserisco io manualmente o tramite acquisizione è già presente. 
La versione è quella 2020 a 32 bit per necessità di progetto.

0 Kudos
Message 1 of 4
(465 Views)

Buongiorno Acroma,

 


@Akroma96 wrote:

Hello everyone, I have little experience with Labview and I need to know if it is possible to select a text file and search in this text file if a code that I enter manually or via acquisition is already present.
The version is the 2020 32-bit one due to project needs.


Yes, all that is possible!

There are file functions including functions to read from text files.

And there are string functions including functions "MatchPattern"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(434 Views)

thank's so much!! is it possibile to take 2 different strings, compare they and receive only the different parts? i need to do a program that read strings in 2 different txt file, these text are initially equal, when one condition occure, 1 additional string will be add in one of the two txt file and i need to write only this last string.

0 Kudos
Message 3 of 4
(369 Views)

Hi Akroma,

 


@Akroma96 wrote:

is it possibile to take 2 different strings, compare they and receive only the different parts?


Yes, sure. LabVIEW is a programming language!

 


@Akroma96 wrote:

i need to do a program that …


Then you should start with coding.

(Or better start with sketching an algorithm on a sheet of paper…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(364 Views)