Jump to content

Serial Read


Recommended Posts

Posted

Hi everyone,

I've got a multimeter with a RS232 output. I would like to see the data send by this device in my LabVIEW program.

I made a program with: "Serial Port Init.VI", "Bytes at Serial Port.VI" and "Serial Port Read.VI".

When I run the program, I get no errors, but I don't receive any data out of my multimeter!! :( And it keeps on running waiting for some input I think.......

If you've got solution or just some comment, please tell me!

Thanks. Cheers,

Joost

Posted

First of read you must write a query command, for example read? or fetch? or data?; in sequence is first init.vi, after write with a string command query, the bytes at serial port and the read.vi, you can insert the write-bytescount-read in a while loop, and remember in the out of loop close with close visa.vi

I hope this useful for you.

sorry for bad english.

Hi everyone,

I've got a multimeter with a RS232 output. I would like to see the data send by this device in my LabVIEW program.

I made a program with: "Serial Port Init.VI", "Bytes at Serial Port.VI" and "Serial Port Read.VI".

When I run the program, I get no errors, but I don't receive any data out of my multimeter!! :( And it keeps on running waiting for some input I think.......

If you've got solution or just some comment, please tell me!

Thanks. Cheers,

Joost

Posted

Oke! My program is working. I still don't know why:

When I connect my RS232 cable into my multimeter the program doesn't receive data (but is running). When I connect pin 2 of my RS232 cable to pin 2 of my multimeter my program receives data!!! :blink:

I still have to find out what's going on........

  • 1 month later...
Posted
Oke! My program is working. I still don't know why:

When I connect my RS232 cable into my multimeter the program doesn't receive data (but is running). When I connect pin 2 of my RS232 cable to pin 2 of my multimeter my program receives data!!! :blink:

I still have to find out what's going on........

I suggest you to use a oscilloscope to capture the data, instead of DMM.

Posted
When I connect pin 2 of my RS232 cable to pin 2 of my multimeter my program receives data!!!

Joost,

If connecting Pin 2 to 2 works, then you probably need a "straight" serial cable, as opposed to a null-modem serial cable where the RX and TX pins are crossed.

Regards,

-Khalid

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.