LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save and read control values

Solved!
Go to solution

Re-salut GerdW,
Oui j'ai eu un soucis à mettre le fichier texte c'est pour cela j'ai mis l'image(mais c'est la capture d'écran de mon fichier texte)
Je joins la preview version pour que tu puisse acceder au code).
Dis moi si ça marche chez toi s'il te plaît.
Aussi tu peux me montrer comment faire s'il te plaît, je n'ai pas très bien compris ton idée.

Merci

0 Kudos
Message 11 of 15
(534 Views)

Hi Ngouda,

 


@Ngouda wrote:

Yes I had a problem putting the text file that's why I put the image (but it's the screenshot of my text file)
I am attaching the preview version so that you can access the code).
Please tell me if it works for you.
Also can you show me how to do it please, I didn't quite understand your idea.


Try this:

One problem remains: I don't know if those controls really are string controls. Are they? (There is only one control with one of those labels you are looking for.)

 

One comment: it would be nice if you would translate your French text to English so we all don't need to do that step…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 15
(525 Views)

Yes, they are string controls.

I just put a control in the example I sent you (because I can't send you the whole code: confidentiality).
 
But in fact on the list you will see on the block diagram I have all these controls.
If you show me just this control (so the TextInput_DriverLeft control) I can do the rest with the others.
Do you know what I mean?
 
your code  work  better, thanks you very much 
Best regards,


0 Kudos
Message 13 of 15
(520 Views)

Hi Ngouda,

 


@Ngouda wrote:
If you show me just this control (so the TextInput_DriverLeft control) I can do the rest with the others.
Do you know what I mean?
 
your code  work  better, thanks you very much

I already showed what you need to do: use ToMoreSpecificClass to convert the control reference into a string control reference, then read the value of that control. (Or convert the variant in your original version using VariantToData into string before building the array.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 15
(511 Views)

Yes, and it works  well, thanks you very much.
Best regards,
Ngouda

0 Kudos
Message 15 of 15
(505 Views)