LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Named Pipes in Labview

Hi, I am currently trying to figure out, why I can't see must of the Constructors in the .NET Constructor Node. In my case I want to use the System.IO.Pipes.dll. As soon as I open it, there are no selectable Constructors available. I am looking for the NamedPipeServerStream Constructor.

 

Thanks for your help in advance.

 

 

0 Kudos
Message 1 of 14
(4,435 Views)

For me, NamedPipeServerStream and NamedPipeClientStream have plenty of constructors...

 

NamedPipes.PNG

0 Kudos
Message 2 of 14
(4,430 Views)

Well...

Thanks now I found them. But why are they located under System.Core and not directly under System.IO.Pipes?

0 Kudos
Message 3 of 14
(4,427 Views)

@Linze99 wrote:

Well...

Thanks now I found them. But why are they located under System.Core and not directly under System.IO.Pipes?


The assemblies group functionality as MS pleased.

 

The way .NET classes are organized in LabVIEW isn't how it was intended. In C#, you won't know and wouldn't care. The environment will organize the classes in the class hierarchy. But LabVIEW doesn't 😕.

0 Kudos
Message 4 of 14
(4,410 Views)

LabVIEW Classic knows nothing about C# object hierarchy and probably shouldn't try to care. It retrieves the information about .Net assemblies and associated classes from the registry and presents them accordingly. Microsoft has changed a lot about how the object hierarchy in .Net is organized and that doesn't match the way it is registered in the registry anymore. For various reasons the registration can't be easily changed after the fact so we now have the situation that the hierarchy LabVIEW shows, does often not match the C# object hierarchy anymore. 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 5 of 14
(4,366 Views)

All this information can be retrieved with .NET's reflection tools.

 

It would be a lot of work, especially to make it efficient.

 

It would make a nice right click plug in though...

0 Kudos
Message 6 of 14
(4,328 Views)

I'm pretty sure if you would try to naively build the entire .Net object tree through full reflection, that the awfully slow LabVIEW object class browser would seem very speedy in comparison. Reflection is great if you need to inspect a known class or its dependency but it is very slow. It's similar to Java's reflection in most aspects (not surprisingly, since the entire .Net implementation is very much a reimplementation of Java concepts in conjunction with a new language, and even that language was in many ways very similar to Java before Microsoft started to add new features to it later).

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 14
(4,321 Views)

Yes, the data would need to be cached to get to a reasonable level of performance.

 

I'm not sure how to decide what data can be cached, but hashing something or checking versioning would probably be the trick.

0 Kudos
Message 8 of 14
(4,312 Views)

I am once again not finding sonething: System.IO.Streamwriter pls help, I'm so lost in this giant list... 

0 Kudos
Message 9 of 14
(4,279 Views)

found it

0 Kudos
Message 10 of 14
(4,269 Views)