Jump to content

Serial Write


Recommended Posts

Hi,

I have an external device that works fine with hyperterminal under the following settings: 57600 bps, 8 data bits, parity none, stop bits, 1 and flow control - hardware.

All instructions to the device are entered as:

<<Escape>><<Code>><<space>><<value>><<enter key>>

Example

(escapeButton)AA 2(returnKey)

Now I found a program in Labview, for serial read and write called "basic serial write and read.vi"

I assumed that for flow control I use DTR/DSR ( correct me if I'm wrong ), but i couldn't see an option called "hadware".

In the string to write box, I'm not sure, how to enter the above sequence ( without the brakets ). Especially the escape button. I would well appreciate if anyone knows how I can enter the above sequence. It will help me a lot

Regards,

Andalusian

Link to comment
In the string to write box, I'm not sure, how to enter the above sequence ( without the brakets ). Especially the escape button.

Sounds like you'll need to enter the strings in hexadecimal as ASCII codes. Check out the LabVIEW help on how to change the string control to HEX representation mode, and then enter you string in HEX (codes are here). Your example will look something like:

1B41 4120 320D

Link to comment
how to change the string control to HEX representation mode

Perhaps its my lack-of-labview background kicking in, any one have a clue, how to accomplish that i.e String Control to HEX representation ?

Perhaps its my lack-of-labview background kicking in, any one have a clue, how to accomplish that i.e String Control to HEX representation ?

Ok, NVM, got it to work. Thanks

Link to comment
  • 1 month later...

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.