Jump to content

Visa problem using compiled vi (.exe) with labview 7.1


massi1970

Recommended Posts

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.