Jump to content

Buffered reads of SV (via NI-PSP) outside LV


Recommended Posts

Hi, all!

Here's the story...

I've made a network share variable (NI-PSP) that has update rate higher than 300Hz. I've enabled server side buffering and implemented buffered read using DataSocket (since NV does not support buffered reads) in VI, added some additional code to verify if there are any packet losses. None... very nice (especially since I need only 10Hz update rate) :)

However, I need to write a client that is not LabView VI.

Is there a way to implement/use DataSocket API (and set BufferMaxPacket property) outside VI and monitor NI-PSP variables, i.e. an external C++ (not only C#) application using NI libraries.

Does Measurement Studio support this?

I use LV2009.

Thanks.

Link to comment

Hi

I haven't tried it in a C# application but it should work just fine. It should be included in Measurement Studio.

I did use the DataSocket Active-X component straight in a web-page a while ago and that worked great.

Of cause I had to allow to run an Active-X items in the browser.

I also added a NI-Graph component on the web page and the Data Socket updated the graph every time a value was received.

At that time (2000), it was impressive to see a web page updating in real time.

Cheers,

Mikael

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.