03-14-2008 03:35 PM
03-15-2008 10:09 AM
03-16-2008 07:57 PM
03-16-2008 08:39 PM
03-16-2008 09:23 PM
Hello Dennis,
Thanks for your reply.
As you said for the initialize.VI, for example, if I set com port of the pc to be COM3,
I have also to set the com port of the instrument as COM3 so they can communicate
with each other. However, since I can read the either date, time, or pressure from the
instrument through example 647 read ID.VI of the driver, that should mean the
communication of pc and instrument successfully, right ? What I have to do is adding
the VISA write into the initialize.VI so the baud rate data can be written into instrument. Is
this correct ? I check the instrument. There is no place where I can set the com port.
The manual has some example in POWER BASIC as below:
The following examples show the usage of a 647C through the RS232 interface. The examples are
given in Power BASIC.
Program to display the act. flow of channel 1:
10 OPEN “COM2: 9600, 0, 8, 1” AS #1
20 PRINT #10, “ID”
30 INPUT #10, A$
40 PRINT A$
50 PRINT #10, “FS 1 0500”
60 PRINT #10, “ON 1”
70 PRINT #10, “ON 0”
80 PRINT #10, “FL 1”
90 INPUT #10, A$
100 PRINT A$
110 GOTO 80
120 END
From the example, the com port setting of instrument should be completed by code
instead of manual setting on the instrument.
Does this mean I should also set both com port for pc and instrument in the initialize.VI.
Sorry for the so much questions. This is my first time to use labview controlling instrument.
Thanks!
03-16-2008 10:09 PM
03-16-2008 10:22 PM
03-17-2008 08:14 AM
There is obviously a huge communication problem here. Maybe shouting will help.
YOU SHOULD NOT BE USING THE INITIALIZE FUNCTION TO WRITE ANYTHING TO THE INSTRUMENT. YOU CANNOT USE THE INTIALIZE FUNCTION TO WRITE THE BAUD RATE TO THE INSTRUMENT. STOP USING THE INITIALIZE FUNCTION TO WRITE THE BAUD RATE TO THE INSTRUMENT.
03-17-2008 01:20 PM
03-17-2008 02:33 PM
Can you attach that file directly to a post. Just use the Browse button below the message body (next to the attachment box).
What about the functions in the VI that actually do a write (i.e. the Select Limit Gas Channel)? Do any of those work?