LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read datas from table

Solved!
Go to solution

Hi danil,

 

"what you actually meant by how many elements?"

I mean:

- Use a probe to test, how many elements your array contains after converting the string with "SpreadsheetStringToArray".

- When you have done this: think about the sense of replacing the first elements of that very array...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 131 of 189
(763 Views)

Please see the attachment:For proper understanding I made a for loop iterating only 10 times.

Also I have placed ARRAY1 after "SpreadsheetStringToArray" it showing 10 different values but in one index.Is the problem with that?I have wired the constant FF with the zeroth index of Replace Array Subset Function.Is it not correct?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 132 of 189
(758 Views)

Hi danil,

 

"Also I have placed ARRAY1 after "SpreadsheetStringToArray" it showing 10 different values but in one index.Is the problem with that?"

No, the problem not with ARRAY1. It shows just what you programmed to show on that wire...

 

"I have wired the constant FF with the zeroth index of Replace Array Subset Function.Is it not correct?"

Well, the wiring is correct. But I doubt you really want to use the result of that operation...

 

Again: First think, then program...

 

- Write down the steps needed to achieve your goal. On real paper!

- Then start the programming!

To me it seems you first program something and then you ask questions about your own VI. Those questions only show you don't know what you have programmed on your own. Wierd...

- Start your two weeks of learning programming (in general) and LabVIEW (in special) right now!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 133 of 189
(750 Views)

Gerd

 

Some people will always keep insisting to walk with roped legs and arms, as it makes it so much more exciting. Smiley Very Happy

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 134 of 189
(740 Views)

Please see the difference between "concatenated string" and "concatenated string2".concatenated string always display the "FF" along with the array element.How to correct this and always make FF fixed as the first element?And then only give it as input to the VISAread(that is output of C to VISAread as input,shown in blockdiagram)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 135 of 189
(724 Views)

Hi danil,

 

"concatenated string always display the "FF" along with the array element."

1) Wrong. You have to make the string indicator bigger to see the whole thing...

 

"How to correct this and always make FF fixed as the first element?"

2) To correct what? See comment 1...

3) FF is the first element, but you still made errors. Switch "output array" to display in "\ code" to see your failure...

 

"And then only give it as input to the VISAread"

4) When you talk about "output array" as "it": VISA-Write only takes a string as input, so you have to convert your string array to string first...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 136 of 189
(737 Views)

FF is the first element, but you still made errors. Switch "output array" to display in "\ code" to see your failure...

 

I did that,and gave it as input to VISAread.After running I got the values as:-see the attachment.

where is the failure?The concatenate string showing value with FF attached in every iteration.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Download All
0 Kudos
Message 137 of 189
(731 Views)

Hi danil,

 

you neither followed my instruction of point 1 nor point 3. What else should I say?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 138 of 189
(728 Views)

Yes.

1.Yes I saw all the elements.

Iam giving this one as the input to VISAread.Sorry.....

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 139 of 189
(724 Views)

How to send this one by one?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 140 of 189
(723 Views)