LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Read with custom message termination symbol (LF instead of CRLF)

QFang,

 

This is an interesting conversation, though I'm afraid I'm hijacking the original thread. What I really want to know is what this mysterious little shape is. lv image.jpg I've been using LV since version 1, but I was away for a few years and I'm having fun discovering all the new and wonderful things. Is this simply a new icon shape that I can't find or does it have something to do with inlining the VI?

 

Thanks,

Clay

0 Kudos
Message 11 of 18
(2,266 Views)

Are you sure? I could have sworn I got timing related "issues" in some other code when I inlined the wait, which went away when I structured it?  Maybe I was a ghost hunter seeing ghosts where there were none?

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 12 of 18
(2,256 Views)

Clay, in the icon editor, if you delete the entiere icon, then draw a smaller contigous shape, anything you don't "enclose" will be transparant. 

So the shape you see is nothing but a quick drawing in the LabVIEW icon editor, leaving most of the space "empty".

 

I find this feature incredibly useful to create small "in-line" style icons, for example if you have a sub-vi that do wire-level operations it can really help make your diagram wires straighter.  That said, on a percentage basis, I rarely use this feature.  I think this has been around at least since LV 7 but I can't say for sure. 😉

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 13 of 18
(2,254 Views)

I decided to make this into a community Example / Tutorial.

 

You can find the document here:

https://decibel.ni.com/content/docs/DOC-31512

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 14 of 18
(2,222 Views)

Hi Riley,

sorry for reopening an old post.

Are you sure termination char will work also with TCP communication?

0 Kudos
Message 15 of 18
(105 Views)

Yes, it will work. Using VISA, of course.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 16 of 18
(101 Views)

Hi Paolo,

do you mean that I have to use VISA Properties just before a TCP Read?

So, how have I to parametrize TCP Read? What input should I choose in    "mode(standard)"  input?

 

No, I cannot understand how to use VISA over TCP communication.

Please explain me better, or show me an example, please.

0 Kudos
Message 17 of 18
(92 Views)

What Riley was speaking about is TCP communication using VISA, which is possible.

Did you ever use VISA? A typical TCP VISA resource would be for example:

TCPIP::192.168.1.23::6200::SOCKET

 where 6200 is the target TCP port

This is however a completely different way of programming: you would need to use VISA Read and VISA Write instead of TCP Read and TCP Write. VISA supports a configurable (single) termination character.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 18 of 18
(85 Views)