04-25-2012 09:01 AM
Hello,
I have a program which have to communicate via Mobdus with ratemeters (Bronkhorst EL-Flow). The program worked until today, but now an error occurred and I don't know how to remove it. The errors status is : "Timeout error".
I have seven ratemeters connected on a bus, their address go from 1 to 8, according to the datasheet of the ratemeter, they are programmed as 19200 bauds.
Thank you for your help.
I have join the VIs.
04-25-2012 09:08 AM
One file missing in my first VIs's packet, I added this in the following packet
04-26-2012 04:08 AM
Hello,
Nothing was changed on the program since the last time it worked;
I think the problem come from the port COM.
Behind my computer there is two port COM (rs232) whose the name are COM1 & COM16 but I don't even know who is the COM1 and the COM16.. How could I know which is the right port ?
The other thing is who can I test if the port works correctly ?
Thanks
04-26-2012 08:23 AM
HiPeter
There a VISA test Panel in MAX you could use to communicate with an instrument connected to your COM port.
regards
Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France
04-26-2012 08:40 AM
Hi Romain,
Thanks for your answer;
I've found the right port. I've tested it by connecting with another machine and it works correctly : I can talk to the machine via modbus
When I try to communicate with the MAX, there is the same error for the both machines as you can see :
Both have a baud rates of 19200.
04-26-2012 12:31 PM
Hi,
It is probably due to the fact your devce connected to the COM port is not SCPI compliant.
*IDN? is an SCPI message.
whatever, glad it works for you ![]()
regards
Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France
04-27-2012 02:37 AM
Maybe that I badly expressed myself but that does not still work on my ratemeter. The communition works correctly with another machine.
I still not understand why the communication doesn't work with my ratermeter. The error still being "Timeout error ".
The ratemeter is correctly powered and connected on the right port (which works correctly with the other machine).
If you can take a look on my VI's, may be there is an mistake I don't know..
Thank you anyways.
04-27-2012 04:39 AM - edited 04-27-2012 04:40 AM
Hi
Did you try increasing your 'timeout' input from 200 to say 1000 msec? I assume the input is in units milisec.
Also, which subvi of your code is giving this error?
04-27-2012 06:44 AM
Hi,
thank you for your response.
I found the problem.. It was because of one of the seven ratemeter was unwired so the program couldn't find him.. Now it works.
Thank you again for your investment.
Regards
Peter.