LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial fun

I've just been asked for help by someone in getting a new piece of kit up
and running. It's a temperature/humidity logger that communicates via serial
and draws its power from the serial line. It's supplied with DLLs but it has
to be run on a Win3 machine with Labview 3. He is rather reluctant to
upgrade.

We have the details on the comms protocol and there should be no problem
there, but to power the instrument we need to set RTS high and DTR low and
keep them there. I haven't the foggiest how to do that with the serial
functions that have been brought up from Labview 3.

One thing I've found is that underlying things is a "Serial Port Reset"
primitive that takes what looks very much like a cluster of all relevant
registers. However there is n
o documentation and no indication of which
elements in the cluster do what.

Development is being done on an LV5 machine under Win95, so on both the
development and the target machine it's possible to use in/out port if
necessary, though I'm reluctant. I'm not going back to LV3 so the plan is I
get something working on the semi decent setup and he copies the wiring by
hand to the LV3 box. This means ideally that there be no hardwired addresses
to determine and define on the final version.

I assume I can ensure Labview doesn't touch RTS and DTR simply by disabling
hardware handshaking, but does anyone know how I can load them with the
values I want? Hacking the cable to wire in a 5V (or is it 12V?) supply
manually is obviously an option, but hopefully this is a simple thing to do
in software once I know how.

--
Craig Graham
Physicist/Labview Programmer
Lancaster University, UK
0 Kudos
Message 1 of 6
(2,663 Views)
Doh. RTFM. Please ignore.

Craig Graham wrote in message
news:3abf28df@newsgroups.ni.com...
> I've just been asked for help by someone in getting a new piece of kit up
> and running. It's a temperature/humidity logger that communicates via
serial
0 Kudos
Message 2 of 6
(2,663 Views)
Hi,

The best (And maybe only) way to control the lines individually is to use
VISA.

Under the VISA property node (VI Server - Serial Instr VISA class) there are
options to set the ports individually. You can then set and un-set the
ports as you require.

Shane

Craig Graham schrieb in Nachricht <3abf28df@newsgroups.ni.com>...
>I assume I can ensure Labview doesn't touch RTS and DTR simply by disabling
>hardware handshaking, but does anyone know how I can load them with the
>values I want? Hacking the cable to wire in a 5V (or is it 12V?) supply
>manually is obviously an option, but hopefully this is a simple thing to do
>in software once I know how.
>
>--
>Craig Graham
>Physicist/Labview Programmer
>Lancaster University, UK
>
>
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 6
(2,663 Views)
Yeah, however this is to go onto a Labview 3 machine. I've not explicitly
checked because I want nothing to do with the thing but my feeling is Visa
is not present in v3.

It turns out this subject was discussed in this group 11 months ago and all
the information I needed is readily available from the archive.

Shane wrote in message
news:99ng3f$3ma$1@rex.ip-plus.net...
> Hi,
>
> The best (And maybe only) way to control the lines individually is to use
> VISA.
>
> Under the VISA property node (VI Server - Serial Instr VISA class) there
are
> options to set the ports individually. You can then set and un-set the
> ports as you require.
>
0 Kudos
Message 4 of 6
(2,663 Views)
Sorry,

I`m fairly sure VISA is not available in LV 3, but I understood from your
post that you were working with LV 5...

Glad you found the answer anyway

Shane

Craig Graham schrieb in Nachricht <3abf4830@newsgroups.ni.com>...
>Yeah, however this is to go onto a Labview 3 machine. I've not explicitly
>checked because I want nothing to do with the thing but my feeling is Visa
>is not present in v3.
>
>It turns out this subject was discussed in this group 11 months ago and all
>the information I needed is readily available from the archive.
>
>Shane wrote in message
>news:99ng3f$3ma$1@rex.ip-plus.net...
>> Hi,
>>
>> The best (And maybe only) way to control the lines individually is to use
>> VISA.
>>
>> Under the VISA property node
(VI Server - Serial Instr VISA class) there
>are
>> options to set the ports individually. You can then set and un-set the
>> ports as you require.
>>
>
>
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 6 of 6
(2,663 Views)
Craig,

The attached file will do what you want. It is a function in one of the serial port libraries and I'm sure it is supported in labview 3 (well, mostly sure). I'm glad I can help you. You have provided this forum with many answers.

Jared
0 Kudos
Message 5 of 6
(2,663 Views)