#1
Posted 29 February 2012 - 12:39 PM
I'm starting using the DSC module, and since it has it's own shared variable data type, I'm forced to use DataSockets for reading and writing data.
So, the DataSocket Read function has a "connection in" interface. This can take (among other things) connection reference from DataSocket Open function, or a DSC Shared Variable wire.
If I use the latter, is the connection closed implicitly, or what? And if this implies Open/Read/Close how much overhead do Open and Close this bring?
Thanks for any insight.
Br, Mike
#2
Posted 29 February 2012 - 01:39 PM
If I use the latter, is the connection closed implicitly, or what? And if this implies Open/Read/Close how much overhead do Open and Close this bring?
I haven't used it for a while - but if I remember correctly after the first read/write, it's a pretty similar speed.
Should be pretty easy to test tho.
#3
Posted 01 March 2012 - 08:17 AM
Br, Mike
#4
Posted 01 March 2012 - 07:34 PM
I'm starting using the DSC module, and since it has it's own shared variable data type, I'm forced to use DataSockets for reading and writing data.
?
I'm not sure what you mean by this. Can you clarify?
#5
Posted 02 March 2012 - 06:53 AM
#6
Posted 02 March 2012 - 11:26 AM
DSC module uses totally different Shared Variable type than LabVIEW base. So, if you want to use functions for monitoring SV value changes, you cannot use LV base functions like "Read Variable" on the same variables. But you can use the DataSocket functions like "DataSocket Read".
I am not sure if that entirely true - you should be able to convert one datatype to another e.g. using a transitionary string and making sure the URLs are correct (as they are different).
#7
Posted 02 March 2012 - 05:23 PM
This isn't correct. We use functions (actually through the Shared Variable API now) to read and write shared variables, and yes, we use the DSC Module. I'd comment more but I'm not even sure what you are saying.DSC module uses totally different Shared Variable type than LabVIEW base. So, if you want to use functions for monitoring SV value changes, you cannot use LV base functions like "Read Variable" on the same variables. But you can use the DataSocket functions like "DataSocket Read".
In any event, I recommend that you use the Shared Variable API functions (available in the more recent versions of LabVIEW), not the DataSocket functions, to read and write shared variables. The performance of the DataSocket functions is not as good as that of the methods available with the Shared Variable API (we've tested them ourselves) and I think it's awkward at best to use the DataSocket API to talk to something that isn't (at least expressly) DataSocket communication. (Yes, the DataSocket API can work with shared variables, but again, why use it?)
Paul
#8
Posted 02 March 2012 - 09:05 PM
#9
Posted 04 March 2012 - 12:54 PM
Br, Mike
#10
Posted 05 March 2012 - 06:08 PM
But you can set data value monitors only on the DSC shared variable types.
Sorry, I still don't know what you are saying. Do you mean setting alarms? Shared variable binding?
Generally, the DSC Module adds some functionality (e.g., alarms, logging, security) to the shared variable.
#11
Posted 06 March 2012 - 07:52 AM
#12
Posted 06 March 2012 - 05:47 PM
Oh, I see! Yes, as jgcode suggested, you can convert the URLs from one form to the other for use with the different APIs. (You can use the string form and do the conversion.)I sorry, I was using EPICS terminology. This is what I mean:
In practice, we use each of these where we need them (with the respective APIs). At present we only use the top one for shared variable value change notifications. We haven't encountered any issues with this approach.
Paul
#13
Posted 06 March 2012 - 10:09 PM
#14
#15
Posted 07 March 2012 - 02:08 PM
So you maybe correct that you cannot directly feed in a LV SV URL. But functionally, the BV tag URL can point to any conventional SV type.
Also noticed that if I use a LV SV URL and convert it to a string then it seems to work also...
#16
Also tagged with one or more of these keywords: dsc, datasocket
Community →
LabVIEW Feedback for NI →
LabVIEW Bugs →
Certain types of clusters fail to send over Datasocket or Shared VariableStarted by prime8 , 08 Jan 2013 |
|
|
||
Software & Hardware Discussions →
LabVIEW General →
License requirementsStarted by crabman , 28 Jan 2012 |
|
|














