LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout error

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.

Peter.

Labview 2010
0 Kudos
Message 1 of 9
(4,070 Views)

One file missing in my first VIs's packet, I added this in the following packet

Peter.

Labview 2010
0 Kudos
Message 2 of 9
(4,069 Views)

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

Peter.

Labview 2010
0 Kudos
Message 3 of 9
(4,049 Views)

HiPeter

 

There a VISA test Panel in MAX you could use to communicate with an instrument connected to your COM port.

 

 

test.jpg

 

 

 

regards

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 4 of 9
(4,040 Views)

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 :

Capture.PNG

 

Both have a baud rates of 19200.

Peter.

Labview 2010
0 Kudos
Message 5 of 9
(4,036 Views)

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 Smiley Happy

 

regards

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 6 of 9
(4,025 Views)
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.

 

 

Peter.

Labview 2010
0 Kudos
Message 7 of 9
(4,014 Views)

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?

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 8 of 9
(4,010 Views)

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.

Peter.

Labview 2010
0 Kudos
Message 9 of 9
(4,003 Views)