05-13-2013 02:27 PM
Hello,
I want to acquire data from a IND560 ( scale terminal ) via RS-232. I made my VI with the Advanced write and read serial. Here my problem, the IND560 send me data in a template form like in the model picture in joint piece. But when i run my VI the character in the indicator are randomly placed like in the picture in joint piece. Sometime they are well placed sometime no.
Data are sent to the buffer and after i read 53 bytes from it. At 53 the data doesn't move in the indicator. So i try to reduce the space in my buffer and flush it but this didn't work. Do you have any idea for solve this problem. I want to get out the data in 3 indicators so i need to know which is the first one second one and third one.
Thank you
P.S. Sorry my english is not very good.
05-14-2013 09:41 PM
skling,
I'd like to make sure I'm understanding correctly. When you read from the buffer, after 53 bytes the read string indicator stops updating? Are you trying to determine what string to write to receive only one piece of information out? Or are you trying to read the three pieces of data at once and then separate them? I apologize for all the questions, but this may help others understand what's going on to provide more helpful suggestions and/or ideas.
05-15-2013 07:36 AM
No it's not what i means. I figured out my problem i think, my scale terminal always sends data, so when I start my VI i'm probably not at the first bit. To solve the problem I just stop the data flow from the terminal start my VI and restart the flow of data. Thank for your help and sorry if it's not clear.
05-16-2013 07:52 AM - edited 05-16-2013 07:52 AM
skling,
Does the scale transmit a termination character? If so, make sure you configure VISA to use it. Will make things much easier.
05-17-2013
02:31 PM
- last edited on
08-12-2024
11:13 AM
by
Content Cleaner
Hello,
I found information about the termination characters at page 189 in the datasheet (joint piece), but i don't think its apply to my case. I add this
https://www.ni.com/en/support/documentation/supplemental/06/termination-characters-in-ni-visa.html
in my VI (cr and lf characters) but it's did not seem to works.
thank you for your help
05-18-2013 06:54 AM
05-21-2013
08:54 AM
- last edited on
08-12-2024
11:13 AM
by
Content Cleaner
Hello,
Here my VI, I use this example ( https://www.ni.com/en/support/documentation/supplemental/06/termination-characters-in-ni-visa.html ) no 7.
thank you