LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read datas from table

Solved!
Go to solution

Yes I have appended Termination char.Yes I have read all the explanations and work accordingly.please check the attached VI.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 91 of 189
(1,028 Views)

Hi Danil,

 

"Yes I have read all the explanations and work accordingly"

I doubt you haven't...

 

I wrote: "So the problem is more related to the data source... Do you send the strings with proper termination char appended?"

 

So why do you insist of checking the receiver side of your VIs?

Best regards,
GerdW


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

I just want to show how the output happens.see the input side

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 93 of 189
(1,023 Views)

In a particular array index first element have to disappear while second element comes.But here all the 50 elements of input array index are showing in the output array index at the sametime.It does'nt mean all the input elements in one array index of the output array.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 94 of 189
(1,015 Views)

Hi danil,

 

"In a particular array index first element have to disappear while second element comes."

Your receiver VI is creating an array with 12 elements. Each element is containing what is received with one VISA-Read operation (as configured). No disappearing, no appending...

 

"But here all the 50 elements of input array index are showing in the output array"

You only receive 12 elements as your FOR loop is wired to run 12 times. Which "50 elements" are you talking about?

 

Best regards,
GerdW


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

Please run these VIs.Also the output I got in update continuously.vi is made as default.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Download All
0 Kudos
Message 96 of 189
(1,008 Views)

Hi danil,

 

- I don't have 2 COM ports nor the serial cable available.

- There are no default data in "update cont."...

Best regards,
GerdW


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

see the edited VIs above.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 98 of 189
(1,002 Views)

Made changes as shown in the attached VIs.Now it is not displaying anything in the output array.

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

Hi danil,

 

according to your picture it shows:

- your array indicator will show a text, starting with "DDD8DED5EC..."

- you have a timeout error for the Read operation - probably because now you want to read 550 bytes. Why did you change that? 50 as before wasn't big enough?

Best regards,
GerdW


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