04-23-2013 10:40 PM
dear all,
I have a problem with my labview. I need to read a data from spectrophotometer using rs232 and display the data using labview. I have design a few block diagram. the first one is
the problem with this diagram is VISA READ timeout. the second one is
when i run this diagram, no error occured but there is ni reading/output reading at the READ BUFFER, supposely, it have to display the value.
im still new with labview..can everyone help me???
tq
04-23-2013 10:45 PM
You're just trying to read the serial port. With your instrument, do you need to send a command to it to have it be able to return data?
04-23-2013 11:05 PM
im sorry because im not really sure about it. because i refer from the thesis. i followed the instruction exactly as in the thesis.
04-23-2013 11:10 PM
A thesis might be good to get a grade in school. But you are dealing with a real world instrument. You need to read the manual for that instrument.
04-23-2013 11:56 PM
Dont use while loop and use simple error handler and read the error generated. Let me know what is that. Or post the VI in 2011 format.
04-24-2013 01:52 AM
I already read the manual for spectrophotometer. I also ask my lecturer about the instrument. I think there is a problem with my diagram.
04-24-2013 01:54 AM
VI file attached. I really hope u can help me with this problem
04-24-2013 08:17 AM
1. Does your instrument use the default settings for the VISA Configure Serial Port.vi? 9600 baud, 8 bit data, no parity, termination character enabled with Line Feed as the termination character,...?
2. What characters does the instrument send with each message?
3. As Ravens Fan has asked, do you need to send a command to the instrument to get it to send data back?
4. Do you get any errors other than the timeout?
5. Do you have other software which can communicate successfully with the instrument?
6. Are you using the correct cable?
7. Does your computer have a built in RS-232 port or are you using an adaptor? Which adaptor?
Lynn
04-24-2013 08:19 AM - edited 04-24-2013 08:20 AM
@tk_ghani wrote:
I already read the manual for spectrophotometer. I also ask my lecturer about the instrument. I think there is a problem with my diagram.
And what did the manual say? What did the lecturer say?
There is a problem with your diagram, and that is that it was created without having a clue has to how the instrument works.
We can't help you fix your VI because we have no idea how the instrument is supposed to work. Only you and your lecturer have that information. There is no more help we can provide until you provide more information. Perhaps attach a link to the manual, or upload the manual as an attachment. At least provide the brand and model number of the instrument.
04-25-2013 03:10 AM
file attached id the instrument manual. I've asked some one who has been used the instrument. they said there is no command needed. just connect the rs-232, choose the port (eg COM1) and the data will display into the labview. i dont know whether there is somethg wrong with my diagram, the computer or the instrument