LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read datas from table

Solved!
Go to solution

Hi danil,

 

right now you send 55 strings, but you only read 10 of them...

 

Thinks first, then program!

Best regards,
GerdW


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

55 strings?But when I placed an array here:It is showing exact values.Please tell me how to correct it.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 152 of 189
(847 Views)

Hi danil,

 

count the number of strings you're sending and you will see it's 55. Hint: 1+2+3+...+9+10=55...

Best regards,
GerdW


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

YES,then what to do with the auti-indexed loop.please give some hints.Is the read VI ok?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 154 of 189
(840 Views)

Hi danil,

 

it's ok - besides it reads less strings than are sent due to fixed loop count...

Best regards,
GerdW


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

I can't get it properly.You mean I have to replace it with continuous loop?

I replaced it with while loop,It is displaying array in down to top order.

Is there any changes have to be made in write VI??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 156 of 189
(833 Views)

Hi Danil,

 

"I replaced it with while loop,It is displaying array in down to top order."

Then I would change the order of collecting the strings...

Best regards,
GerdW


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

Replacing the for loop with while loop in the read side,Is that the correct method??

Why it is reading in the reverse order?

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 158 of 189
(826 Views)

Hi danil,

 

"Replacing the for loop with while loop in the read side,Is that the correct method??"

You don't need to replace the FOR loop, but you can. The point is: you have to read as many strings as you send...

 

"Why it is reading in the reverse order?"

I doubt it is reading in reverse order. Probably it is only displaying in reversed order. Quite a difference...

 

Think first, then program!

Best regards,
GerdW


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

1.By viewing the attached code,can you tell me it is reading in reverse order due to any problem in the code?

 

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 160 of 189
(820 Views)