ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write string to serial port ?

Hello! Thanks all, who help me build up this attached VI !!!

Small problem.

In a few words: I received date from serial port, my VI work with it, and I want pass string “sting I need write to port” to serial port. (see attached VI).

Data all time read from port and write to port.

I know, how work serial VISA, but I don’t know, how connect wire.

And second question: how insert subVI in VI from .llb?

Thanks!

Mikhail.

0 Kudos
Message 1 of 5
(4,160 Views)

Hi,

to insert a subvi from a llb. Just do the same as for a "normal" subvi: Right click on diagram => Functions => Select a vi.

When you click on the llb it will be opened. Click on the vi you want to add: It is done.

 

In you diagram you used  the VISA write.vi in the write case. Use it again to write your string => copy/paste after Visa Read =>

disconnect top and bottom right wires from Visa Read => connect VISA Write to it.

 

Dai 

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 2 of 5
(4,150 Views)
Hi  Dai!
Thanks for answer.
I did as you said, but something  I did wrong.
Please, look at my VI. What is wrong?
Mikhail.
0 Kudos
Message 3 of 5
(4,144 Views)
Hi,
 
it looks alright. There is a missing vi (untitled one), I suppose you forgot to include it.
Not matter since I don't have the hardware I cannot test.
I suggest you debug it yourself using the Highlight Execution tool (the little light bulb next the run button).
Try to spot the problem: is the string you want to write correct? etc...
 
Dai
Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 4 of 5
(4,142 Views)
Hi
It is all right.
Thanks fo help.
With greeting from Russia!
Mikhail.
0 Kudos
Message 5 of 5
(4,134 Views)