LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Datasocket Read/Write Mode, Not using it properly?
regisphilbin
post Jul 13 2005, 11:26 PM
Post #1


Very Active
***

Member
Posts: 81
Joined: 27-June 03
From: San Diego, CA
Member No.: 127
LV:7.1.1
United States Nothing Selected Nothing Selected


I'm stumped on a the functionality of the Read/Write mode for the Datasockets Open VI.
I've attached a picture below showing the 2 different methods of opening Datasocket references....In one case, I use the Read/Write mode for DS open, in the other case, I use 2 DS opens: One for READ and another for WRITE. For some reason, only the latter program works properly (when I open READ and WRITE separately). Why is this?

I thought that if the READ/WRITE MODE was used, the output reference can be used with the Datasocket READ and Datasocket WRITE Vi's as shown in Top Vi of picture. Instead, It seems I'm unable to "change" the state of the Datasocket tag using the the Top Vi.


FYI: I'm using DS server manager to create the item. I've also gave proper privileges to each computer so that they can communicate with the DS server. It obviously works since using the bottom VI, I get the desired results.

What am i doing wrong?

Regis
Attached Image


This post has been edited by regisphilbin: Jul 13 2005, 11:27 PM

--------------------
Certified LV Associate Developer


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Jul 13 2005, 11:26 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
regisphilbin
post Jul 22 2005, 09:15 PM
Post #2


Very Active
***

Member
Posts: 81
Joined: 27-June 03
From: San Diego, CA
Member No.: 127
LV:7.1.1
United States Nothing Selected Nothing Selected


QUOTE (regisphilbin @ Jul 13 2005, 04:26 PM)
I'm stumped on a the functionality of the Read/Write mode for the Datasockets Open VI. 
I've attached a picture below showing the 2 different methods of opening Datasocket references....In one case,  I use the Read/Write mode for DS open,  in the other case,  I use 2 DS opens: One for READ and another for WRITE.  For some reason,  only the latter program works properly (when I open READ and WRITE separately).  Why is this?

I thought that if the READ/WRITE MODE was used,  the output reference can be used with the Datasocket READ and Datasocket WRITE Vi's as shown in Top Vi of picture.  Instead,  It seems I'm unable to "change" the state of the Datasocket tag using the the Top Vi.
FYI:  I'm using DS server manager to create the item.  I've also gave proper privileges to each computer so that they can communicate with the DS server.  It obviously works since using the bottom VI, I get the desired results.

What am i doing wrong?

Regis
Attached Image

*



Well, got info from NI support:


I looked into this issue a little, and unfortunately I believe that the
readwrite mode for datasocket does not really function as one would expect.
This issue is somewhat addressed at this url:
http://digital.ni.com/public.nsf/websearch...6A?OpenDocument,
but unfortunately I believe that the second method you are using to read
and write to datasocket in the same loop is the one you will need to use.

Please let me know if you have any other questions on this issue, or if I
have not answered your question completely.

Regards

Travis Mansfield
Applications Engineer
National Instruments



So i guess the ReadWrite Mode is a totally useless feature (or a bug)...

Regis

--------------------
Certified LV Associate Developer


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 8th January 2009 - 09:35 PM