massi1970 Posted February 12, 2008 Report Share Posted February 12, 2008 Hi people, in order to automatically recognize wich com port is connected to a device I've used the "Visa Find Resource" with this string ASRL?*INSTR{VI_ATTR_ASRL_BAUD ==19200} to check only com devide with baude rate at 19200. After the research I try to write to all (in sequence) the serial port found a command ($A) waiting for 4 bytes returned or time exceding. In fact the device connected answers only with command "$A" (with 2 bytes). If time is exceeded (2000 ms) and 4 bytes are not present on serial port the vi goes to the next port found. If on none of the port found 4 byte are present the device is non tonnected. This vi runs fine if it is launched into labview (7.1), but if it is compiled and I use the exe program I never find the device. Otherwise it seems to run too fast as expected (few ms). Have you any idea of which tipe of error I made? Thanks Massimiliano. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.