Read/write problem with Datasockets.

Hi, I'm a newcomer to Labview, and I'm having a problem with Datasockets. When trying to create a 'Publish & Subscribe' socket between two machines it only works on one, the one whose dstp address is the local machine, the other being incapable of writing to this 'host' and displaying red LEDs, although it is reading from the host. Also I've only managed to set up these read/write connections using the right-click options, how is it done programatically? Any clarification on the issue (whether directly connected or not :-) would be appreciated. Many thanks,
Tom

Hi Lector!
This is normal behavior for DataSocket. You want to run a DataSocket server on both machines. Although you can SUBSCRIBE to a DS server anywhere on the network, you can only publish to your local server. We do a LOT of Datasocket work here, and this has never been a problem. It's a real security bonus, as well.
It's a good idea to split all your read and write functions. Although some front panel objects (knobs, particularly) can be controls and indicators simultaneaously, it's good practice, for a number of reasons, to NOT use both functions. I build "dummy" front panels for all my VI's which I distribute to all my colleagues who need to work with a remote instrument.
You cannot really appreciate DataSocket, till you've tried to rem
otely control something with PC Anywhere over a slow network! A bit of practice, and you'll wonder how you ever did anything without DataSocket. I'd be glad to work with you on any particulars. Good Luck!
Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705

Similar Messages

  • Read/Write problems with multiple connections using MySQL & Tomcat

    hello all,
    I am developing a web-based java application that runs on a 4.1 tomcat server and uses MySQL 3.23.52 as db server.
    this program uses hundreds of tables with hundreds of rows each.
    when two or more users are connected, we are experiencing several problems:
    1. when a query is started, they get cross-results that come from both connections.
    2. when inserting/updating (most queries are long and take a few seconds), sometimes data are crossed too, sometimes they are saved incorrectly but get no error message, sometimes they are not saved and get 'null pointer' sqlexception (but tables and queries are correct).
    3. using SHOW PROCESSLIST and SHOW STATUS, we saw that MySQL server hosted no more than 3 max_used_connections, even when my.cnf parameters where set with more. when 3 or more users try to access the database, they get a bad handshake error until other connections are freed.
    any suggestions?
    thanks
    alessandro bonanni
    university of udine

    I am not using a connection pool. I read that when two different connections try to access the same data simultaneously, mysql is not secure. maybe a connection pool could solve that? or maybe is it a mysql limit?
    alessandro

  • Dvdram gt30l read write problems

    long ongoing reading cd roms Kodak Picture cd shows a blank disk dvd+ writing problems please help.

    Hi 
    Since you are facing an issue with Read/Write issue with your DVD Rom please click on the web link given below should be able to help you to resolve the issue on your unit. Kindly select the applicable Operating System (OS).
    CD or DVD Drive Cannot Burn Discs (Windows 8)
    Drive Cannot Write to Writable Discs (Windows 7)
    Drive Cannot Write to Writable Discs (Windows Vista)
    Drive Cannot Write to Writable Discs (Windows 98, ME, XP)
    Let us know how it goes!
    *Although I am an HP employee, I am speaking for myself and not for HP.
    *Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
    * Click on "Purple Thumbs up" button to the left side of my post to say thanks!
    Regards
    Ahmed

  • Help! - Datasocket read/write problem

    Here are two basic read/write datasocket vis... that do not work properly.
    Start the DS engine, run both vis, modify the string array in read.vi or resize the write.vi window and you will see that the indicator display in write.vi is wrong.
    Can anybody tell me why?
    Thanks a lot for your help.
    MichelC
    Attachments:
    Datasocket.zip ‏19 KB

    From what I see, the elements being written and read are not synched to the same iteration number, and thus are not array-indexed the same, therefore, you'll have a difference in the array index # for what was written and what was read. In other words, the DSS-read is not always at the same iteration # (index #) as the DSS-write when the write and read occur.
    However, with that thought, you could remove all looping and simply DSS-write the whole array to your DSS-read. Then you keep the indexing equal on both ends. When you send and receive a whole array, no looping is needed, so the process also is quicker.
    Well, that's how I see it, good luck with it, Doug

  • Read Write Problems, Javascript

    Hello,
    I have had problems with a simple procedure. The grand scheme involves a lot more, so my example may seem trivial but this is where I've narrowed the problem down to. I cannot read an image file using the File object and write it back out as an image. Here is my test function, my targetengine for the script is session. When using the BINARY encoding the replicated file is the same size and appears almost identical but it simply won't be recognized as a valid jpg
    function readWrite(){
    var name = "/c/indesign_scripts/Winter.jpg";
    var f = new File(name);
    var encoding = "BINARY";
    if(!File.isEncodingAvailable(encoding))
    alert("You're using an unsupported encoding");
    f.encoding = encoding;
    f.open("r");
    var payload = f.read();
    var f2 = new File("/c/indesign_scripts/Winter-1.jpg");
    f2.open("w");
    var bool = f2.write(payload);
    if(!bool)
    alert(f2.error);
    Thanks in advance for any advice,
    Matt

    You may get a response here, but it will get more attention if you post on the scripting forum down the hall.

  • Javacomm read/write problem

    Hello all, i have successfully installed javacomm package in my computer and i can enumerate all available ports. My problem is between the read - write communication. By running the SimpleRead first and then the SimpleWrite i got a "Port Already in use" which sounds normal to me, so i connected 2 pc's with a serial cable and runned one of sun's samples on each.
    Step 1. SimpleRead waits for data on COM1
    Step 2. SimpleWrite(on other pc) sends some data from COM1
    Both COM1's are connected with that serial cable but seems no data coming. Am i doing something wrong? I tried same thing with VirtualPC but still no data arriving.
    Any help appreciated. Thanks

    Hello all, i have successfully installed javacomm
    package in my computer and i can enumerate all
    available ports. My problem is between the read -
    write communication. By running the SimpleRead first
    and then the SimpleWrite i got a "Port Already in
    use" which sounds normal to me, so i connected 2 pc's
    with a serial cable and runned one of sun's samplesAre you using a terminal the opens the port?
    Without any ambiguity whatsoever,
    "Port Already in use" means
    something else has already opened the com port and I can say the
    COMM API. works because I use it all the time with GPRS board.
    ie:
    https://hyperview.dev.java.net/source/browse/hyperview/www/comm/SerialHandler.java?rev=1.2&view=markup
    Crossing pins 2 & 3 will only redirect your output/input
    but will not cause the the port to be in use Jos.
    (T)

  • Reader 9 - problem with pdf version 1.0 and descenders

    2 big problems over here:
    * Reader9 will not properly open files created as pdf version 1.0/1.x
    all text is cut off about 2/3 of the way down, whether or not in fields.
    * Any pdf file version above 1.0created with any version of GhostScript does not have the previous issue, However - no descenders of any font are coming out.
    We do not have either problems with any version of Reader prior to 9

    Hi creamac,
    Welcome to communites
    Please install vmware tool and then on vmware task bar select connect or unplug usb drive . You
    will find that on right hand corner above to task bar of host machine  .
    "Nature always wears the colors of the spirit."

  • Adobe Reader 10 problem with opening pdf files

    Ever since I downloaded and installed Adobe Reader 10, I have been unable to open .pdf files from the Internet.  When
    I try to download them, I only the get the option of saving the file, not opening it.  Any help would be appreciated.  Thanks!

    We had similar problems with both the upgrade to 9.4.2 and 10.0.1. We would either get the download/save screen or a black screen would appear and eventually error out and freeze up the machine when we tried to hit pages that loaded pdfs stored in Oracle.  We found the pdfs would load when using Chrome or Firefox.
    We're running winXP SP3 and mainly have users using IE 7 and IE 8.  We were eventually able to solve the problem by doing the following:
    Implementing the code fix outlined in this thread (Response.charset = null;) in the page that pulled pdfs from Oracle: http://forums.adobe.com/message/3476821
    Uninstalling and reinstalling the base version of Reader (9.4.0 or X.0) from users' machines that had gone through the update from 9.x to X.x
    Rebooting the machine after each uninstall or install
    Updating the Reader to either 9.4.2 or 10.0.1
    Now we have users who can successfully load the pdfs from Oracle who are running either 9.4.2 or 10.0.1.
    Hope this helps!

  • Can I read/write a LabVIEW DataSocket cluster in Lookout?

    Can read/write DataSocket text, logical, and numerical arrays but how do I read/write a LabVIEW style cluster datatype (i.e. an array of clusters or a cluster of arrays)?
    Thanks!
    Tom
    Thomas G. Duffey
    Engineering and Research Consultants, Inc.
    Air Force Research Laboratory
    3 Antares Rd.
    Edwards AFB, CA 93524
    661.275.6172 FAX 661.275.5073
    mailto:[email protected]
    http://neverworld.net

    You should be able to wire your cluster or array of clusters or cluster of arrays directly into the datasocket write/read primitives. They are polymorphic and should handle the data directly.
    Marc Monroe
    National Instruments

  • Read/Write speeds with Airport Extreme and USB Hard Drives

    Anybody know how fast the read/write speeds are with a USB hard drive and the Airport Extreme Base Station?
    My Setup
    I have a 17 MBP (2010) and a 13 MBP (2011) - no SSD's
    MBP generally connect via 802.11n 5Ghz with a very strong signal
    Gigabit connection on a Windows Desktop
    I have a variety of external drives (7200, 5400, Drobo) at varying capacity (320GB, 2TB, 5.6TB)
    Goals
    Backup: Time machine
    Backup: File copies of pictures and home videos (greater than 1GB files)
    Backup: Crashplan
    File sharing: Aperture libraries--not sure if that is possible or practical. That is something that I need to research further...but on the off chance people have experience with it.
    Thanks!

    ishjen wrote:
    Anybody know how fast the read/write speeds are with a USB hard drive and the Airport Extreme Base Station?
    Welcome to Apple's discussion groups.
    Apple's AirPort base stations aren't known for fast file serving, but for most purposed they're fast enough.
    I can't comment specifically on your Aperture plan, but with some software it's important to avoid simultaneous access by more than one user.

  • Read write problem

    I had a code that was working perfectly until recently. Some part of the VI where it reads and write does not work. Does anyone have the patiece to actually go throught the code and help me. I am a beginer with LV.
    When we make an exe using LV 7.1, all the source files are pretty much on the exe, correct? So, if I go and copy that exe elsewwhere, the source files should open correctly, right? I ask this because it seems that the files from vi.lib may have got displaced and hence it does not read/write.
    Help required urgently.

    You didn't post your code for anyone to look at but I'm goint to guess that you did not take into account that paths are a bit different in the development environment and in the run-time. If you use a function like Get Current VI's Path, in development mode, it will return something like c:\folder\example.vi. After the app is built, it will return c:\folder\app.exe\example.vi. So, to get the path to the folder, you need to do an extra strip path. This is an extremely common mistake and there is a knowledge base article (that I don't have the link to offhand) and there have been numerous posts with the exact same question. There are a lot of ways to handle this. The one I usually use is to put in an application.kind property node and wire the output to a case structure. Put the extra Strip Path in the Run Time System case.
    Message Edited by Dennis Knutson on 11-06-2007 08:20 PM
    Attachments:
    Extra Strip Path.PNG ‏4 KB

  • Choice of RFID reader/writer compatible with a PDA and LabView

    Hello All,
    I need information on a RFID reader/writer that i can use with a PDA. The ones i have being coming across don't have a LabView driver except Phidget product. But Phidget uses USB. I need a RFID module with a compact flash. Pls reply.
    Demmy

    Hi Junaid,
    In one of my AII presentations I found: 
    Tested readers:
    <b>Intermec, Alien, Matrics, Philipps, AWID, Tyco Sensematic</b>
    maybe you can call those companies and just ask or e-mail them?
    also this may help you:
    Simple SAP Device Controller with limited functionality is provided. It supports readers:
    - <b>Alien ALR-9780</b> (4-port reader)
    - <b>Intermec IntelliTag 500 API</b>
    - <b>Philips SDK</b> reader
    But I'm not sure how occurate this presentation is because I got it in 2004 (december as far as I remember)
    BTW
    If they answer please post their suggestions here if you may:)
    Regards,
    michal

  • GPIB reads/writes compared with VISA reads/writes

    Hello all,
    Being slightly new to LV (3 months of casual use, and 1 month of really getting to know it)...
    I was just wonder what the difference between VISA reads/writes and GPIB reads/writes.
    Actually this is my main question: Is the GPIB Write "data" parameter and the VISA Write "write buffer" parameter the exact same thing?
    Would I write the exact same command with either parameter and get essentially the same effect (if all parameters are correct?).
    I have a list of GPIB commands that I want to use to write drivers for  a PSA, and I really want to use VISA, and not have to change my paradigm of thinking.
    I would hope they are quite similar.  In fact, my research is telling me that GPIB is almost like a subset of VISA?
    Thanks for your help.

    The data you write with the GPIB functions is identical to the data you write with VISA. There are some things that are a bit easier to use the traditional GPIB calls but for 99+% of the time, VISA will do the trick. VISA was originally conceived as a common api for GPIB and VXI instruments. The first VXI instruments were basically the same GPIB instruments without a power supply and the user interface (buttons, screen, etc.) but they required different drivers. VISA permitted a single driver to be used for both types of instruments. Now, VISA has expanded to include serial, Ethernet, USB, and PXI and not having to change your "paradigm of thinking" is one of the big reasons that VISA is so widely used.

  • DFSR Read-Only - Problems with Disaster Recovery?

    Hi guys,
    I have (2) 2008 R2 file servers.  One is production and one is for DR.  First, I have to make sure that the DR server never writes back to production in any situation.  The means that if the (2) servers stop communicating with each other
    and data is deleted off the production server, the read-only DR server does not put deleted files back onto the production server when connection is restored, etc.  It sounds like I am covered there.
    The question is what happens if production server crashes and I now want to change the DR server to production?  Does the data on the D/R member still have the same NTFS permissions?  It sounds like it does, but would I then just go into dfsmgmt.msc
    and mark the replicated folder as read-write, force AD replication, run a dfsrdiag pollad, and then redirect the users to the DR server?  I know the content may not be 100%, but the back-up plan has always been to disablestrictnamechecking, change
    the host record for the production server to the IP address of the DR server, and redirect users there for 99% of the data.  I think that files that were open on the production server that crashed would not have had their updates replicated across. 
    Let me know if that would work from the DFS side of things
    Dan Heim

    Hi Dan,
    I think this article provided an answer to your question:
    Read-Only Replication in R2
    http://blogs.technet.com/b/askds/archive/2010/03/08/read-only-replication-in-r2.aspx
    An RW replicated folder can be converted to an RO replicated folder (and back) “on the fly”.
    Converting will cause a non-authoritative sync to occur on the replicated folder for the server being altered. 
    If you have any feedback on our support, please send to [email protected]

  • Windows 2008 R2 Folder assign permission "Read and Write" problem with *.doc file

    Hello All,
    I am a new one here,
    I am sorry for any mistakes and also my english is so poor.
    M Brother company runing Windows 2008 R2 as Active Directory...
    We have folder Name: Admin
    and in this folder, there are alot documents files as : *.doc, *.dwg, *.txt etc.....
    All user accesing to these files and they can open to edit and save...
    One day my brother want me to set Admin folder for all users just"Read and Write.." mean they still can open files to edit and save... but can't delete..
    I did success with this..
    But only one thing happen.. when they open *.doc file to edit and attempting to save, the message alert" access denide " and they can only "SAVE AS"...We don't want "Save as"
    Could you show me how can we fix error with *.doc file while they trying to save? because it allow only save as.. but other files as *.text file or *.dwg they can save without problem..
    Could expert here ever face this issues and fix by yourself, please share me with this..
    Please help me..
    Best regards,

    Hi,
    Office programs are specific. They will create a temp file when edit, then the temp file will be deleted when close. So Delete permission is needed for users to saving Office files like Excel/Word.
    For more detaile information, please refer to the thread below:
    Special Permissions - User cannot save files
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/721fb2f1-205b-46e5-a3dc-3029e5df9b5b/special-permissions-user-cannot-save-files
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for