Jump to content

Register for shared variable data value change notifications


Recommended Posts

Posted

The FAQ on shared variables (#30) says that the "DSC Module adds the ability to register for shared variable alarm and event notifications and data value change notifications as separate event cases in the LabVIEW event structure". I tried to do that, but can't figure out how to register the event. Can anyone clue me in please?

George

Posted
The FAQ on shared variables (#30) says that the "DSC Module adds the ability to register for shared variable alarm and event notifications and data value change notifications as separate event cases in the LabVIEW event structure". I tried to do that, but can't figure out how to register the event. Can anyone clue me in please?

George

DSC includes an example for using this feature. Go to the examples directory/lvdsc/Event Structure Support. This should do a pretty good job getting you started.

Posted
DSC includes an example for using this feature. Go to the examples directory/lvdsc/Event Structure Support. This should do a pretty good job getting you started.

Hmm, I don't have a lvdcs subdir in the Examples dir. Is the DSC module a special addon?

George

Posted
Hmm, I don't have a lvdcs subdir in the Examples dir. Is the DSC module a special addon?

George

There's nothing special about it. NI would be happy to give it to anyone who would give them money for it. :P
Posted
There's nothing special about it. NI would be happy to give it to anyone who would give them money for it. :P

While I would argue that there IS something special about it...it is a purchasable add-on and is required to make use of the feature you are asking about.

Posted

That's the problem with humor, you never know who you're going to insult. :nono:

Anyway, not having used most features of the DSC module (except for mainly the image navigator and the IA OPC server) I'm not one to pass (or not pass) judgement on it.

Posted
That's the problem with humor, you never know who you're going to insult. :nono:

Anyway, not having used most features of the DSC module (except for mainly the image navigator and the IA OPC server) I'm not one to pass (or not pass) judgement on it.

I wasn't offended...I just forgot to add the smiley to my post. :D

Posted

Well, I guess a related question would then be, "Is there any way to register for these shared variable value change events without the entire DSC module installed?" I don't mean to circumvent the need for the DSC which, I'm sure, is well worth it. It just seems that if that is all you want to do, there may be some other way.

-Matt

Posted
Well, I guess a related question would then be, "Is there any way to register for these shared variable value change events without the entire DSC module installed?" I don't mean to circumvent the need for the DSC which, I'm sure, is well worth it. It just seems that if that is all you want to do, there may be some other way.

-Matt

Not at this time. DSC had to do a good bit of extra work to get this to work.

  • 10 years later...
Posted (edited)

I know this thread is a bit old, but relevant to my question.  I'm essentially asking the same question that MatthewHarrison asked at the end regarding shared variable events without the DSC module.  One twist, I've once made this work via bound front panel controls and registering for a value change event of that control.  This was in LV2014.  Now I'm looking to do it again with another customer that doesn't want to pay for DSC and it's not working in LV2015SP1.  Does anyone have any input on getting this to work in either environment?

Edited by Jordan Kuehn
Posted

Amazing NI is still trying so hard to sell the DSC.  From what I can tell NSV events are possible in CVI without the DSC.  Here is an old thread that ends in some CVI code that show how to register NSV change callbacks.  Now all you have to figure out it how to trigger LV user events from CVI, which I believe is possible.

http://forums.ni.com/t5/LabWindows-CVI/NSV-Async-Read-Callbacks/td-p/1329994

  • Like 1
Posted
36 minutes ago, viSci said:

Now all you have to figure out it how to trigger LV user events from CVI,

The same way you do from any DLL -  PostLVUserEvent. Generating events for LabVIEW is trivial. Maintaining a DLL (especially multi-platform)  is a right royal pain in the proverbial,however. 

Posted
45 minutes ago, viSci said:

Amazing NI is still trying so hard to sell the DSC.  From what I can tell NSV events are possible in CVI without the DSC.  Here is an old thread that ends in some CVI code that show how to register NSV change callbacks.  Now all you have to figure out it how to trigger LV user events from CVI, which I believe is possible.

http://forums.ni.com/t5/LabWindows-CVI/NSV-Async-Read-Callbacks/td-p/1329994

Agreed, DSC should stand on its own for customers that need a SCADA system.  I would be willing to bet the vast majority of people using NSV Events have no need for anything else in the DSC Module.  At the very least give us a runtime that is free and only has the NSV Events.  

Thanks for the links!  That looks like it would work, but requires a significant investment in time as well as using CVI...

Posted (edited)
13 minutes ago, Jordan Kuehn said:

Agreed, DSC should stand on its own for customers that need a SCADA system.

It did. It was called "BridgeVIEW". They didn't sell many so decided to make it a toolkit instead ;).

Edited by ShaunR
  • Like 2

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.