LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read datas from table

Solved!
Go to solution

Hi danil,

 

"How to send this one by one?"

Such question cries for answers as: use an array with an autoindexing loop"...

 

You still don't followed my instructions given above...

Best regards,
GerdW


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

Following the instructions that you have given in #136

 

1.I have made the string indicator bigger to see the whole thing.

2.I switched  "output array" to display in "\ code"

3.Then converted it into string and given as input to VISA write.

 

And after running the VI,I can view the input and output as shown in the attached VIs.

where is the problem??In the attached VI,we can see the difference between 'concatenated string' and 'concatenated string2'.Is this problem can be resolved by giving input one by one as shown in concatenated string2?please reply.

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

Hi danil,

 

"2.I switched  "output array" to display in "\ code""

Are you blind???

Don't you spot the difference of the 1st and 2nd array element? Don't you figure out how to format them in the very same way?

 

It has been tolld you so many times...

Best regards,
GerdW


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

FF is given as fixed element in the first array index.Did you mean FF has no "\n" and the others have, as the difference??Please don't get angry with me

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 144 of 189
(762 Views)

Please tell how to format it before inputing it to the VISA read.I also tried like this:

 

 

But nothing changed.Iam trying to figure it out for the last two days.But can't understand what is happening there.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 145 of 189
(752 Views)

Hi danil,

 

so now you found the first problem, after several iterations of asking and answering...

 

Second problem:

You concatenate your output array into just one string, which is sent via VISA-Write. You already look at that string in "\-code" display.

Now look at your receiver side: you configure your serial port to obey the TermChar, which is set to LF. Your sent string contains a lot of LFs. How will the VISA-Read work, when presented with such a string in the receiver buffer?

 

Think first, then program...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 146 of 189
(747 Views)

If our send string contains a lot of LF,how can we configure the receiver buffer?Iam not able to get it from context help.Please help.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 147 of 189
(739 Views)

"Your sent string contains a lot of LFs. How will the VISA-Read work, when presented with such a string in the receiver buffer?"

Can you please clear me the above statement,before sending we have to remove this LFs or we have to send one by one using autoindexed loop as you already told?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 148 of 189
(729 Views)

Hi Gerdw,

 

              Learned that VISA read can't read a series of line feed characters.I made my write VI as attached.Again problem pertaining in Read side.Please tell me what changes I have to do there??

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

Hi GerdW,

               Can you please check my attached VIs and point out my problem?I gave input to VISA read one by one,but there also shows some problems,it is reading the constant value "FF" more than ones.Also whole running in highlight execusion mode it is showing "TimeOut error".Can you please point out the problems in write and read side.Please don't neglect this.

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