Jump to content

Sending binary code to virtual com port


Phantom Lord

Recommended Posts

Try wiring a false to "Enable Termination Char" on the configure serial port and add a "bytes at serial port" and use the output of this for the input to the byte count on visa read. You might need to also add a delay between the write and the "bytes at serial port" depending on how quick its response is.

Hope this makes sense!

Kelvin.

Link to comment

Hi,

Thanks for the response. Did make sense i guess as the time out error dissappeared. But it still not working though. The serial write keeps on only reading one byte. but I guess I know where the error is, just not how to solve it. Think it has something to do with the conversion. I included this VI as well now. Seems the boolean array is converted to only one character instead of two. Looks like it only takes the first byte or something to convert.

Someone else gave me this VI but it was intended for one byte, but I don't know what to change. Any ideas? Meanwhile I keep searching :)

Thanks again

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.