hello!
I am a new user for LabView, and I met a problem with
interface for RS232 instrument to build.
It is for ventils to control ( ventil runs just as a small air pump), I want
to
do it by LabView programm.
it runs by:
9600 bau rate,
8 data bits,
1 stop bit,
no parity.
4 chanals.(it can control max. 4 ventils)
I set them up by the first step.
And then I wanted to give a command to test it. I got the information
from its manual: (open one ventil)
Byte1 Byte 2 Byte 3 Byte4
10010000 0000CCCC 00000nnn 0nnnnnnn
CCCC: the number of chanal (it is chanal 1 that i would test).
nnn nnnnnn (10bits in Byte3 and 4)) : the value of the pump (in %, i wanted
100%).
So by the se
cond step I wrote the string
"10010000 00000001 00000111 01111111"
directly in
Write.vi to be sent to COM2, and the next step I set up the Read.vi to get
the return signals.
But there is no action from this ventil, and the program doesn't show any
error code ,
by Read.vi it got only the singals "/00" .
I think maybe I should not set up the order just as the long string with 0
and 1 directly to
the Write.vi, but what should I write?
Could someone give me some details about how to build an interface just like
it correctly?
Le