LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data socket two way communications

I have a small program scanning some FP modules and writing the results to a data socket server.  Multiple other applications read the ds server.  I want to use the same small program to write data to the FP modules under certain conditions.  I've attempted this by configuring the data socket server as read/write.  No success and I can't find anything in the examples. Will I have to have a second ds server open to handle input to the modules?  I thought it would be straight forward but........ First, is this possible to do and if so could someone point me to an example of provide info on how.  Thanks, Mike
0 Kudos
Message 1 of 4
(3,014 Views)
Bump because I posted this question Friday night and that's probably not a good timeSmiley Wink  Forgot to say that the control info to be sent back to the FP modules will be determined by one of the applications reading the ds server. 
Message Edited by mike72903 on 03-30-2009 09:08 AM
0 Kudos
Message 2 of 4
(2,975 Views)

Howdy Mike,

 

This should be a fairly straightforward process of Open, Read/Write, Close.  However, since this is not working for you, please post a screen shot of your code so I can get a feeling for how you're interacting with the Data Socket server.  Without this info, I can't really offer a relevant suggestion, so I have a few follow up question for you.

 

1.  Are you sure that you are opening a good connection to your server?  A check for this is if you can successfully write data to the server.  It seems that you are from your first post, but I wanted to make sure just in case.  If this isn't working properly, it would obviously affect your ability to read data.

2.  What type of server are you using?

3.  Are you using any front panel binding for your data?

4.  What is your FP reading?  Is it just coming back empty or does it throw an error of some sort. 

 

Thanks, I look forward to hearing back from you!

Sincerely,

Chris G in AE
0 Kudos
Message 3 of 4
(2,949 Views)
Hi Chris.  Thanks for the help.  Sorry I didn't get back sooner, I've been up to my neck in alligators and hardware problems.  I can read the data from the FP fine in the display program as it's updated by the ds server.  I'm using the NI ds server and no front panel binding.  The scan program simply reads the FP and applies some math and writes the results to the ds server and it's then read by any of several display programs that are for now on the same machine.  What I want to do is send a value back from a display program via the ds server and have the scan program write that value to the FP output modules.  Attached are some screen shots of a test version.  One (the scan program) generates random values, and writes them to the ds server.  The display program reads the values from the server.  When the boolean on the display is pressed I need to have that read by the scan program and update the value of the boolean on it's display.  I've been around and around and I know I'm making it harder than it is, just one of those mental blocks for me.  Thanks for helping.  Mike
Download All
0 Kudos
Message 4 of 4
(2,924 Views)