Trouble with sending huge arrays via DataSocket​s.

Hi,
I am having trouble sending huge arrays via Data Sockets from my main vi on the server PC to the vi on the client PC.
To further elaborate, in my main vi program I have created 3 arrays called Array1, Array2 and Array3 on my front Panel. By right clicking the mouse on each set of array and from the pop-up menu I selected Data Operations-> DataSocket Connection and I entered dstp://localhost/Array1 and clicked on Publish to broadcast the data from Array1. Similarly, I did the same for Array2 and Array3.
Now, in my client vi program I have created three arrays on my front Panel to read (Subscribe) the data from the three arrays broadcasted via DataSockets from the server’s main vi program. To subsc
ribe the data I did the similar process above and clicked on Subscribe to read the data (of course the IP address of the client PC will be different then the server PC so enter the hosts IP address). Once the data is received in the client arrays, I am using LV2 globals so that I can use these arrays on other sub-vi’s locally (instead of having each sub-vi get data from the server directly).
I succeeded in doing this with two arrays, however when I added the third array the DataSockets would not work consistently. For example the refresh rate would get slower at times and sometimes 2 out of the 3 arrays would update. I don’t know if I have exceeded the limit on how much data DataSockets can broadcast, but I need to have some mechanism to broadcast 6 arrays (approx. 10000 elements for each array) of double digits precision.
Has anyone come across this issue? Is there another way of broadcasting data more efficiently then DataSockets?
I would appreciate any
help that I can get.
I have attached the files for this program in the zip file.
First run the Server main program, testServeMainVI.vi, and then the client program, testClientMainVI.vi.
Thanks
Nish
Attachments:
beta2.zip ‏70 KB

DataSocket can be a lossy communication. I like the advice to flatten the data to a string, but another option would be to buffer the communcation. The problem might be that the data is being overwritten on the server faster than it is being read. There is an example of buffered datasocket on NI web page: http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_guid=BA3F9DFED17F62C3E034080020E74861&​p_node=DZ52000_US&p_submitted=N&p_rank=&p_answer=&​p_source=Internal
Also, I have played with the new built in buffered datasocket in LabVIEW 7.0. It is pretty slick. If buffers the data both on the server and the client side.

Similar Messages

  • IPhoto: trouble with sending photos via gmail.

    For some reasons, for about one or two months ago start having troubles with sending photos from iPhoto via gmail.
    It used to work perfectly, but now refuses to send photos. Pop up message says that there are some trouble with accessing accounts.
    Once I restart my computer it works well again.

    Hello ilya,
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the message?
    Then click the Show Details button & Check again.
    Mail: Can't send messages, "Cannot send message using the server smtp.xxxxx.com" alert appears...
    http://support.apple.com/kb/TS1482

  • Iphone4 trouble with sending texts n wifi

    I am having trouble with my Iphone4. It can call and receive text but can not send them. It also has trouble connecting to wifi. Any suggestions? Thanks!

    Hi jillsmith802!
    Thanks for coming to the Apple Support Communities with your question! I have found an article that may help you resolve this issue. The article can be found here:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    If you are still having issues with sending SMS messages after following the steps in this article, I would recommend going to getsupport.apple.com to get in touch with our technicians, who will be able to help you resolve the issue.
    -Braden

  • HELP: Trouble with partial filled arrays

    For HW, I have to write a deleteRepeats static method for an array of characters that deletes any character previously listed and returns the new array size. The example the problem gives is:
    char a[10];
    a[0]='a';
    a[1]='b';
    a[2]='a';
    a[3]='c';
    int size = 4;
    size = deleteRepeats(a, size);
    The problem then says after the code is executed, a[0] should be 'a', a[1] should be 'b', a[2] should be 'c' and size is 3. I read the section in my book on partially filled arrays, but I still can't get this method to work properly. Here is my code:
    public static int deleteRepeats(char[] a, int size) {
    size=a.length;
    for(int i=0; i<size; i++) {
    for(int j=1; i+j<size; j++) {
    if(a==a[i+j]) {
    a[i+j]=a[(i+j)+1];
    size--;
    return size;
    With that code, when I put in the test array [aabcd], it returns 3, when it should be 4 and it changes the array to [abccd]. I'm sure there's numerous problems with my code. Any help is greatly appreciated.

    Please post code in code tags.
    First, I have no idea why they make you work with partially-filled arrays. It seems like the worst idea in the world. You should use ArrayLists for this kind of thing.
    Why do you do "size=a.length;" at the beginning of the method? You lose the size information.
    And I don't see how the algorithm does what you want. When you "delete" an element from your list of numbers in the array, you need to shift all later elements backwards to fill the gap.

  • OutOfMemory??? With an huge array how I can avoid it??

    In runtime i got the OutOfMemoryError (or exception... I don't remember) when bulding an huge array... So i would like to know which dimension has usually the heap memory, if it depends from the machine you're using, and how i can avoid that error, without creating a List...
    I need the array to create a simple program for school wich will split a file in n parts, so I need to use an array of bytesn but if the file bigger than about 50mb it appears the OutOfMemory above...
    Any suggestions accepted (you'll see i'm a newbie), Thanks

    In runtime i got the OutOfMemoryError (or
    exception... I don't remember) when bulding an huge
    array... So i would like to know which dimension has
    usually the heap memory, if it depends from the
    machine you're using, and how i can avoid that error,
    without creating a List...A list is unlikely to take less room than an array.

  • Trouble with sending emails with Road Runner

    I have had little luck with sending email from my iPad with Wifi through my Road Runner Account (Central Florida). Apple Support got it to work with the AT&T 3G set as a secondary Outbound server, but I am still looking for a way to send emails with RR with WiFi. The problem may be that there is no way to turn off the authenication feature in the iPad mail setup, and RR here does not require or permit authentication for its outbound mail servers. Has anyone had this problem and found a solution? Why is there not a selection available in the setup for "no authentication" since I can see that there are accounts which do not support it?

    If you had the AT&T network set up and on, and the RR still did not work, there must be another problem with sending emails through RR than I have guessed. I have thought the problem was the incompatible Authentication setting, but if you had the AT&T on as an alternative, that should have resolved the Authentication issue. In any event, I have discussed with Bright House (RR), and they do not seem to acknowledge any compatibility issues with the iPad. Hopefully, it can be resolved.

  • I have installed the new i OS 7 on my IPAD, I am having trouble with sending messages.  I reset the imessage and networking as I did for the iphone but it still does not allow messages to be deleivered.  any suggestions?

    I have installed the new iOS 7 on my I Pad and am having trouble with messaging, I reset the imessages and networking and the messages are still not being deleivered.

    Reset all settings
    Settings>General>Reset>Reset All Settings
    Note: Data will not be affected but settings will be reset.

  • Updated Z10 to new software release 10.2.0.429 and having trouble with sending BBM/text messages

    I recently updated my Blackberry Z10 to the new software release 10.2.0.429 and I'm having trouble sending messages on BBM b/c the red X shows up on every single message that I send to any contact on my list. This was never a problem for me prior to updating it. I also suddenly cannot open my browser nor can I open my texts properly nor send or receive texts. The keyboard on the touchscreen shows up constantly while im trying to navigate through the phone and it stays frozen until I lock/unlock the phone. All of this ONLY started happening ever since I updated it. What's going on? Please help, this shouldn't be happening!!

    Hi and Welcome to the Community! 
    Keep the phone on, and remove the battery for about a minute or more and then replace it
    VIA | rat-7 
    http://supportforums.blackberry.com/t5/BlackBerry-​Z10/z10-update-10-2-0-424-problem-with-text-messag​...
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • Trouble with sending texts and making calls with new Verizon iPhone 4S

    A friend of mine just upgraded from a 3G on AT&T to a 4S on Verizon. She sync'd her contacts via iCloud. She is having an issue where if she takes the 1 out of a contact's name from her address book, txts don't send. If she leaves the 1 in, it doesn't recognize the name, and just lists the 1 (201) xxx-xxxx at the top instead. Worse, when making calls, if that contact does not have a 1 before the area code, it tells her her plan isn't set up for international calling and that it can't complete the call. I am on AT&T so I can't help her. My phone has the international assist option, I assume Verizon's does too.
    I can edit my phone number on my AT&T phone; it appears she cannot edit hers to either add or delete the 1 before hers.
    Surely this is easily fixable -- just thought I'd see if anyone knows what's going on here. Thanks all.

    I'm also a Verizon subscriber - have been with Verizon since the summer of 2001 and when my contract renewed last June, I selected the same phone as my free upgrade.
    I was looking forward to using the same features with my Mac when I discovered that Verizon purposely disabled these features and I'm not completely sure why but it must involve protecting a potential revenue stream for Verizon.
    My existing 2-yr contract with Verizon expires a year from this June and I plan on making the switch to Cingular at that time primarily due to Verizon disabling these bluetooth features but also due to the iPhone. Cingular has excellent coverage in my area - I have a number of friends who are Cingular subscribers that get better reception at my residence than I do and I use my cell phone in place of a land line. The iPhone will have been on the market for a year or so at that time and I expect a new and improved iPhone model to be available by then. And if I decide not to purchase an iPhone, I'm making the switch to Cingular regardless.

  • 5530: Trouble with connecting to laptop via blueto...

    I have Nokia 5530 and laptop Toshiba A300. 
    I can pair  laptop with Nokia E50 and 3230 and Sony Ericsson. There is Vista installed on Toshiba though it doesn`t want to pair with Nokia 5530. 
    Nokia 5530 can pair with PC with Windows XP installed and other mobile phones.
    Laptop can find Nokia 5530 but when I try to connect one to another message "Service is not found" appears.
    Changing of level of security in Bluetooth options did not help.

    ftp doesn't work well in modern network environments, and the design of the protocol itself is basically incompatible with the inclusion of firewalls in modern networks. And it transmits the authentication credentials in cleartext.
    Put another way, see if ssh and particularly sftp works here (either directly via the sftp command, or via a sftp GUI tool) works for your requirements.
    Failing that, [here is ftp set-up information|http://labs.hoffmanlabs.com/node/942].
    If it's the DNS set-up, then here is some [DNS server set-up information|http://labs.hoffmanlabs.com/node/1436]. And your Mac OS X client will need to have access to the same DNS information your server is using.

  • Trouble with Sending Mails with forms 6i on a Citrix Environment

    I have a problem, cause i tryed to use the guide`s that i found in the forum, but using this code:
    PACKAGE mail_pkg IS
    /* paquete sacado de internet: UTL_SMTP package */
    session OLE2.OBJ_TYPE; /* OLE object handle */
    args OLE2.LIST_TYPE; /* handle to OLE argument list */
    procedure logon( Profile IN varchar2 default NULL );
    procedure logoff;
    procedure send( Recp IN varchar2,
    Subject IN varchar2,
    Text IN varchar2,
    Attch IN varchar2
    END;
    PACKAGE BODY mail_pkg IS
    session_outbox OLE2.OBJ_TYPE;
    session_outbox_messages OLE2.OBJ_TYPE;
    message1 OLE2.OBJ_TYPE;
    msg_recp OLE2.OBJ_TYPE;
    recipient OLE2.OBJ_TYPE;
    msg_attch OLE2.OBJ_TYPE;
    attachment OLE2.OBJ_TYPE;
    procedure logon( Profile IN varchar2 default NULL )is
    Begin
    session := ole2.create_obj('mapi.session');
    /* create the session object */
    args := ole2.create_arglist;
    ole2.add_arg(args,Profile);/* Specify a valid profile name */
    ole2.invoke(session,'Logon',args);
    /* to avoid the logon dialog box */
    ole2.destroy_arglist(args);
    End;
    procedure logoff is
    Begin
    ole2.invoke(session,'Logoff');
    /* Logoff the session and deallocate the */
    /* resources for all the OLE objects */
    ole2.release_obj(session);
    ole2.release_obj(session_outbox);
    ole2.release_obj(session_outbox_messages);
    ole2.release_obj(message1);
    ole2.release_obj(msg_recp);
    ole2.release_obj(recipient);
    ole2.release_obj(msg_attch);
    ole2.release_obj(attachment);
    End;
    procedure send( Recp IN varchar2,
    Subject IN varchar2,
    Text IN varchar2,
    Attch IN varchar2
    )is
    Begin
    /* Add a new object message1 to the outbox */
    session_outbox := ole2.get_obj_property(session,'outbox');
    session_outbox_messages := ole2.get_obj_property(session_outbox,'messages');
    message1 := ole2.invoke_obj(session_outbox_messages,'Add');
    ole2.set_property(message1,'subject',Subject);
    ole2.set_property(message1,'text',Text);
    /* Add a recipient object to the message1.Recipients collection */
    msg_recp := ole2.get_obj_property(message1,'Recipients');
    recipient := ole2.invoke_obj(msg_recp,'add') ;
    ole2.set_property(recipient,'name',Recp);
    ole2.set_property(recipient,'type',1);
    ole2.invoke(recipient,'resolve');
    /* Add an attachment object to the message1.Attachments collection */
    msg_attch := ole2.get_obj_property(message1,'Attachments');
    attachment := ole2.invoke_obj(msg_attch,'add') ;
    ole2.set_property(attachment,'name',Attch);
    ole2.set_property(attachment,'position',0);
    ole2.set_property(attachment,'type',1); /* 1 => MAPI File Data */
    ole2.set_property(attachment,'source',Attch);
    /* Read the attachment from the file */
    args := ole2.create_arglist;
    ole2.add_arg(args,Attch);
    ole2.invoke(attachment,'ReadFromFile',args);
    ole2.destroy_arglist(args);
    args := ole2.create_arglist;
    ole2.add_arg(args,1); /* 1 => save copy */
    ole2.add_arg(args,0); /* 0 => no dialog */
    /* Send the message without any dialog box, saving a copy in the Outbox */
    ole2.invoke(message1,'Send',args);
    ole2.destroy_arglist(args);
    --message('Correo Electrónico Enviado Correctamente');
    End;
    END;
    I have an error when I try to send a mail, i create a pdf file, and just after appears this message:
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-305500
    I use a Citrix environment, but if I use local applicattion, in my machine, without citrix, It send the e-mail correctly.
    Any help??
    Please...

    Duane,
    don't knowwhy you chose to extend VButton, but the following code works for me. Note that I extend the VBean class. Also I am using Jinitiator 1.3.1.9 (this is what I had available for testing). My first test chowed that there was a problem with the way you specify teh URL string, which is why I harcoded the URL string when building the URL.
    Another issue when running it is that you need to sign the file because it needs socket permission (at least this was the error shown on a remote client).
    Here's the code
    package mypackage3;
    import oracle.forms.ui.*;
    import oracle.forms.properties.ID;
    import java.net.URL;
    import java.applet.*;
    import javax.swing.JTextField;
    import oracle.forms.handler.IHandler;
    public class Class1 extends VBean {
    public final static ID PLAY = ID.registerProperty("PLAY");
    private IHandler mHandler = null;
    public Class1()
    super();
    public void init(IHandler handler)
    mHandler = handler;
    super.init(handler);
    public boolean setProperty(ID property, Object value) {
    if (property == PLAY)
    try
    System.out.println("before soundplay");
    URL sou = new URL("http://fnimphiu-lap.de.oracle.com/forms60java/Drums.wav");
    System.out.println("1");
    //Applet testapp = new Applet();
    Applet testapp = mHandler.getApplet();
    System.out.println("2");
    AudioClip clip = testapp.getAudioClip(sou);
    System.out.println("3");
    clip.play();
    System.out.println("after soundplay");
    return true;
    catch(Exception ex)
    ex.printStackTrace();
    return super.setProperty(property, value);
    Fran

  • TS2755 Does anyone have an issue with sending youtube links via text message with ios7?

    I recently downloaded IOS 7 on my iphone 5. I cannot forward youtube links via text message. Does anyone have the same issue?

    Found the issue. It seems that IMessages requires area code as well for local phone numbers. I never had the area code for local phone numbers with IOS 5 and IOS 6. It always worked before.

  • Anyone having trouble with sending imessage on ipad

    I constantly have trouble sending messages from my ipad.......is there a fix

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
     Cheers, Tom

  • 920 constant troubles with sending texts

    I constantly get issues with not being able to send SMS. And when I try to resend it still faults. This is only resolved by either going to airplane mode or rebooting the handset.

    Get a new sim card, give that a go...
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Need help with sending email notifications via OEM

    Hi Folks,
    Objective: To setup email notification if the listener or the database instance goes down
    Version: 10 g Rel 2
    I have setup the email from OEM. I have verified the configuration by successfully sending myself test emails.
    I have configured the schedule (7 days a week, from 1 A.M to 11 P.M)
    I have also configured the out-of-the package alerts so that I will be notified if the listener goes down
    However, once I manually stop the listener, no email is sent out?
    Can somebody spot any obvious steps that I might have missed? Or if somebody can suggest any debugging steps that might help to resolve the issue ?
    Thanks in advance.
    rogers42

    Hi Roger
    Ok, tell me
    1. You have a user like DBA and configurate this count for recive email?
    2. When You try send email from Console You recive this email? Your prove server email
    You should recive this mensagge
    Este mensaje de correo electrónico de prueba de Oracle Enterprise Manager indica la configuración correcta de la dirección de correo electrónico y del servidor de correo.

Maybe you are looking for

  • T-Code to view stock report

    Dear Frndz, What is the T-code to view the system in-stock report. Regards, Srini

  • Alleged Copyright Infringement using IPhoto 09 music on FB

    Hi Can someone clear this up I have just received an email from Facebook telling me that the music or content is breaking the law as the pictures are mine that I created in Iphoto it can't be that. That only leaves the music that comes with Iphoto. C

  • Value settings for database query

    I have a database set up for item prices. Currently, the database is set for currency and I have 1.99 and 2.99 entered in the two fields. However, the cfm page form displays them as 1.9900 and 2.9900. Why is it adding the extra "00" at the end? The v

  • Tracing in forms??

    is Tracing possible in forms..if yes how?? Alfred

  • Loading text from a .txt file

    I want to do something that should be VERY simple, but due to Adobe's insistence on using #$%^ing tutorials instead of just providing step by step instructions, it's very frustrating to figure out how to do it. All I want to do is load the contents o