06-07-2012 07:40 AM
06-07-2012 11:59 PM
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.
06-08-2012 02:07 AM
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...
06-08-2012 02:54 AM - edited 06-08-2012 02:54 AM
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
06-08-2012 03:28 AM
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.
06-08-2012 03:38 AM - edited 06-08-2012 03:39 AM
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...
06-08-2012 05:40 AM
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.
06-08-2012 06:13 AM
"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?
06-08-2012 07:45 AM
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??
06-11-2012 12:13 AM - edited 06-11-2012 12:13 AM
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.