04-01-2010 06:04 AM
My program does common things with serial port and VISA blocks, such as sending "AT" commands to a modem and receiving "OK" with termination character \n. All is fine on my PC (Labview 2009), but when i run the same executable on another PC (Runtime engine 2009), and connect it to the same modem, the VISA reads take a lot of time, by unnecessarily waiting for the full timeout. No timeout errors, reads are correct, but very slow. It happens only with my program on that PC, the VISA test panel in MAX is fine. What could be the reason?
04-01-2010 08:48 AM
04-01-2010 09:14 AM
It works on one PC and not the other. Looks like some machine-level setting of VISA.
Here's the core of comunication code with termination character, however:
VISA read generates error when termination char isn't received within timeout.
In second PC, it generates no error and the termchar is received... but as slow as possible!
04-01-2010 09:18 AM
Snamprogetti wrote:It works on one PC and not the other. Looks like some machine-level setting of VISA.
Here's the core of comunication code with termination character, however:
VISA read generates error when termination char isn't received within timeout.
In second PC, it generates no error and the termchar is received... but as slow as possible!
Check the radix on the "10" int constant!
04-01-2010 09:23 AM
It's decimal 10, that's character \n
04-01-2010 09:26 AM
04-01-2010 09:36 AM
Flow control is left to default (0 - none).
Everything i can set in my Labview program is the same in both PCs, except COM port number
04-01-2010 09:47 AM
04-01-2010 09:54 AM
The "good" PC has a traditional COM1 port.
The "bad" PC actually has a USB-serial converter, appearing as COM4, but it works fine with terminal or MAX.
The connected modem is the same one.
04-01-2010 10:01 AM