LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve value from array

Solved!
Go to solution

Hello everybody,

I want retrieve value from an array. but i can not do it.

on a document, i put many value and i would like tu use theses value as parameters. I can retrieve document but not recover the values from array.

Do you have an idea ?

Thanks,

 

 

0 Kudos
Message 1 of 13
(3,658 Views)

Hi treti,

 

maybe you should use a different instance of the ReadDelimitedFile function to read in numeric values instead of an array of strings?

Best regards,
GerdW


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

Thanks for your answer,

what do you advise? if I use something else as a function I will not be able to retrieve the document?

 

Have a nice day

0 Kudos
Message 3 of 13
(3,617 Views)

@Mat1987 wrote:

Thanks for your answer,

what do you advise? if I use something else as a function I will not be able to retrieve the document?

 

Have a nice day


My ESP isn't working very well today, so I can't see what the document that you didn't attach looks like so that we can help you to fix the broken wire in the vi that you also did not attach.

Message 4 of 13
(3,610 Views)

this is my VI,

Thanks you

0 Kudos
Message 5 of 13
(3,608 Views)
Solution
Accepted by Mat1987

Hi treti,

 

when you want to read numbers you should read numbers - and not strings!

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 13
(3,586 Views)

Thanks!

I didn’t pay attention, so much for myself.
However, I cannot get the value of the indices 1 2 3 ... in my document. I only have the index 0. Have you an idea ?

 

Thanks you !

have a nice day

0 Kudos
Message 7 of 13
(3,568 Views)

Hi treti,

 


I didn’t pay attention
However, I cannot get the value of the indices 1 2 3 ... in my document. I only have the index 0. Have you an idea ?

How should we say when you don't upload your CSV file?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 13
(3,562 Views)

yes, this is my document.

is an example, in the futur, there will be a lot of value.

must it have a special separation? excuse me for theses question, I'am a beginner in Labview.

 

Thanks you so mutch for your time

 

 

0 Kudos
Message 9 of 13
(3,557 Views)

Hi treti,

 

works fine for me:

check.png

(Using LV2011, so the older icon for the ReadSpreadsheetFile function.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 13
(3,547 Views)