LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

COM port reading in LabVIEW - part II

Highlighted
Hi!

I have written several days ago a question about how to read data from
digital scales connected to my COM port. I've got few useful answers, but I
have encountered in new problems:

I don't have "Serial" in functions toolbox. That may explain the question I
have arosed before. Furthemore - I don't have "I/O Interface examples" in
the examples section of Labview help, and I had to download the example from
the Internet. I have downloaded the example from
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&7C575F813A32A9AA
862569230074DEAD&cat=96CE2B01326A20FB8625688B0074AB17, and it works, but I
encounterd 2 problems:

1) I don't have the VIs shown in the example. If I want to use them - I have
to cut and
paste them.
2) Functioning problem. Lets say that I define that it reads 8 bytes. I get
some strange things in the output (strange for me, at least), which looks
something like a sequence of spaces and black bars. I believe that what I
get there is something binary.

Another thing is the suggestion that I have recieved to read it from
memory - I give the address I want to read from. The problem is that I don't
know which ones - the port has a pretty wide range of the addresses.

What I want to do in the end, is just to write the value that I see on
scales to a file.

Sorry to bother you again, Victor.
0 Kudos
Message 1 of 2
(1,065 Views)
No serial examples??
In LabVIEW 5.1. select Help, Search Examples, (I/O Interfaces) Serial
Communication.
In LabVIEW 6.0.2 select Help, Examples..., Serial Interfaces.
Should be there...

No serial vi's??
Function palette, Instrument I/O, Serial.
In LabVIEW 6 the 'normal' serial vi's are replaced by the VISA vi's. To use
these are a
little bit difficult but the old serial vi's are still availlable:
Program Files\National Instruments\LabVIEW\vi.lib\instr\serial.llb.

To take a better look at the received characters, right click on the string
indicator
and select Hex Display. Now you see the hex value of the string instead of
the
ASCII text.


"Victor Chernov" schreef in bericht
news:9ldg2h$sb0$1@news.huji.ac.il...
> Hi!
>
> I have written several days ago a question about how to read data from
> digital scales connected to my COM port. I've got few useful answers, but
I
> have encountered in new problems:
>
> I don't have "Serial" in functions toolbox. That may explain the question
I
> have arosed before. Furthemore - I don't have "I/O Interface examples" in
> the examples section of Labview help, and I had to download the example
from
> the Internet. I have downloaded the example from
>
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&7C575F813A32A9AA
> 862569230074DEAD&cat=96CE2B01326A20FB8625688B0074AB17, and it works, but I
> encounterd 2 problems:
>
> 1) I don't have the VIs shown in the example. If I want to use them - I
have
> to cut and paste them.
> 2) Functioning problem. Lets say that I define that it reads 8 bytes. I
get
> some strange things in the output (strange for me, at least), which looks
> something like a sequence of spaces and black bars. I believe that what I
> get there is something binary.
>
> Another thing is the suggestion that I have recieved to read it from
> memory - I give the address I want to read from. The problem is that I
don't
> know which ones - the port has a pretty wide range of the addresses.
>
> What I want to do in the end, is just to write the value that I see on
> scales to a file.
>
> Sorry to bother you again, Victor.
>
>
0 Kudos
Message 2 of 2
(1,065 Views)