How to use mathscript node in server side with the parameter from the client side

I tried to develop a server/client system with some algorithms written in matlab. So I included a mathscript node on the server side. The client will send the parameter to the server. According to these parameters, the sever will call the matlab functions to do some computings and then send the results back to the client. The server has to wait for all parameters received before the computings. How do I know this since I only connect the parameter variables to the inputs of mathscript node on the server. The sever cannot know whethere these parameters are the new ones or old ones since the client may send parameters multiple times?

It seems to me you have two perfectly good options to start with. You could send all possible parameters in a single packet from the client to the server. This could be in the form of a cluster or an array of values. If by server/client you mean you are sending data over the network, then you could flatten this data to string before sending and unflatten it on the other side. Since all parameters come in one packet, you know all the data is valid every time you send data.
The other option is to send the parameters individually, but include some extra information such as a timestamp or iteration count. The server keeps reading and storing parameter values until a packet arrives with the next timestamp. Alternatively, you could include some information such as an end-of-parameter-list boolean that is sent with every parameter. It would be false until the last parameter packet.
Give it a thought. There are lots of solutions.
Jarrod S.
National Instruments

Similar Messages

  • How to use Mathscript Node to calculate integrals

    How do you use the command quadn_trap within a Mathscript Node to calculate the integral 5x^4 dx numerically. The upper bound is 1 and the lower bound is 0. The answer should be 1.
    Solved!
    Go to Solution.

    Hey Wear,
    Cool. Never even heard of quada_nc8 function. Works like a charm, just don't forget the semicolons or single quotation marks.
    Thought you might be interested in where my question originated. I am studying the 'Hands-On Introduction to LabVIEW' by John Essick. Problem 5 in Chapter 3 reads:
    It is easy to show analytically that the integral (he has the elongated S symbol for the bounds with upper=1 and lower=0) 5x^4dx equals exactly 1. Open a Mathscript Interactive Window and then type help quadn_trap in the Command Window, After learning the syntax of the Mathscript command help quadn_trap write a VI called  Numerical Integral that uses quadn_trap within a Mathscript Node to calculate the integral (again elongated S symbol with same bounds) 5x^4dx numerically and then displays the result in a front-panel indicator with Digits of Precision equal  to 5. For your numerical result to be correct to five decimal places (i.e., the first five decimal places are all zero), how many x- values must be supplied to quadn_trap within the integration range x=0 to x=1?
    Thanks for your help!
    btfever

  • How do I get an app to reinstall with no data from the first time?

    Basically, I just want to restart the game, but when I reinstall it, the button doesn't say install, it is an cloud with a down arrow inside.
    Thanks guys!

    Hi, if the App is in the Dock, right click, choose Options>Open at login.
    Or System Preferences>Accounts>Login Items window, drag the App there or click on the tiny plus icon to add it.

  • How to use Win 2012 r2 Server Hyper-V?

    How to use Win 2012 r2 Server Hyper-V? Can we install Virtual OS in new machines(which doen't have any OS)? OR it required any OS in client machine to access Virtual OS of Hyper-V?
    Regards
    Meer Akbar Ali

    Hi Meer,
    In addition , here is a video link about installing OS in VM (it is 2008 but it is  similar to 2012R2 ):
    http://technet.microsoft.com/en-us/video/hh859745.aspx
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to use mysql in J2EE server?

    Hi all,
    I have been learning J2EE and playing around with Pointbase as my database and the IDE that I'm using is Forte For JAVA 4 EE.
    Now, I wanna use mysql in J2EE, EJB. But I do not know how to use mysql in j2ee server. I have try to altered the resources.property file by adding a few lines to called the MYSQL datasource and driver. But, it give me errors when i am doing the deployment process. Can any1 of u help me?
    Thanks in advance..

    Hi,
    I guess there must be some problem with your App Server Configuration settings:
    Kindly Check if you are using the following ones:
    Driver Name: com.mysql.jdbc.Driver
    Url: jdbc:mysql://[hostname][,failoverhost...][:port]/[dbname][?param1=value1][&param2=value2].....
    Thanks & regards,
    Paritosh
    Software Engineer
    L&T Infotech Ltd

  • How to find out the user from the Jobs queue in Report server

    Hello All!
    I have a doubt about finding out the user from the scheduled jobs queue. Say I go ahead and schedule a report on Reports Server how can I find out the user name. When I view the jobs using showjobs I could see that the DBMS_JOBS table has a column under "Job Owner". But it invariantly shows it is "rwuser". So is there a way to find out which user has scheduled which job?
    Regards
    Shobha

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • How can I make MFE delete the mails from the serve...

    guys,I am using mfe on my E63 with mail2web free account.I configured gmail to retrieve my hotmail mails then I configured gmail to forward my mails to my mail2web account.I did that so I dont have to have more than one mailbox on my phone and to be able to check my all accounts from one account which is mail2web via mfe.but my problim is when I delete an email via mfe from my phone its not been deleted from mail2web servers.I mean when I login on pc I see all the mails that I have been deleted.can I make the phone to also delete the mails from the server? thanx
    my blog on the net(in arabic):http://bazkurd.wordpress.com

    WaMuHIP07 wrote:
    Right-click the videos that you want to always start from the beginning in iTunes. The options tab of the video file properties contains this option control. Uncheck the box that says "Remember Play Postion."
    Or hit the left side of your scroll wheel when launching it on your iPod

  • I accidentally saved a URL using Chrome and I'd like to delete it from the iPad. I reset privacy settings in Chrome, but it shows up in Mail, Notes, etc. How do I get rid of this thing? Thanks.

    I accidentally saved a URL using Chrome and I'd like to delete it from the iPad. I reset privacy settings in Chrome, but it shows up in Mail, Notes, etc. How do I get rid of this thing? Thanks.

    it's only possible with pop3 type email accounts not with imap and exchange
    preference->account->click the account in question-Click advanced and set "remove copy from server after retreiving a message to what you wish it to be

  • How to access the Oracle from Unix when SID is not provided?

    How to access the Oracle from Unix when SID is not provided.
    User Name : xxx
    Password : yyy
    SID : SID
    I use to access it using below command from Unix prompt:
    sqlplus xxx/yyy@SIDNow since I dont have SID, how to access the Oracle DB from Unix Box?
    User Name : xxx
    Password : yyy
    Service Name : zzz
    Regards,
    Sunny.

    Hi Ajay
    Thanks for the suggesstion :)..It worked as well.
    The Actual problem was in the "tnsnames.ora" file where in I need to make entry for the new SERVICE name.
    Now I am able to connect it properly.
    Regards,
    Sunny.

  • How to use management chain and escalation hierarchies with LDAP

    Hi,
    I have experienced now with the management chain pattern and escalation feature. I have used the standard file-based security provider (JAZN and user-properties.xml). You can easily define a user hierarchy using the user-properties.xml file to define the escalation path and the management chain in terms of hierarchy levels.
    In a production environment in most cases you will use LDAP as the security provider. I wonder if it is possible to define such an user hierarchy in LDAP. I now you can create a role-based hierarchy, but in cases this will be to much and you need user based hierarchy.
    Another issue is that you can also define a highest level op approval. Hower you onlyonly define manager/director/ceo, used in the user-properties.xml file. How can you tell jdeveloper to use other custom roles?
    Does anyone has experience of suggentions om this issue?
    Kind regards,
    -Tom

    Tom,
    I can address parts of your question, please see below:
    How can you tell jdeveloper to use other custom roles?JDeveloper picks up users from the Integration Server connection. So, if the server is configured with the LDAP configured server, you will see users and groups from that registry. JDeveloper (the human task editor dialog) does not go directly against the LDAP.
    I wonder if it is possible to define such an user hierarchy in LDAPYes. That is the way it has been designed.
    I now you can create a role-based hierarchy, but in cases this will
    be to much and you need user based hierarchy.Making a user specific hierarchy has problems - what if a user leaves the company? The role based hierarchies solve this problem very well. May be I misunderstand your question.
    I will have a colleague, who works on identity management, look at your question.
    Regards,
    Sidda.

  • Help Please..Until recently I have owed 2 iPod Classics - 2007 80gb and 2009 160gb (which has since been returned). How do I transfer the library from the 160 to the 80gb in iTunes using Windows Vista (ie merge the 2 libraries)? Thanks

    Until recently I have owed 2 iPod Classics - 2007 80gb and 2009 160gb (which has since been returned as it had a very noisy hard drive).
    How do I transfer the library from the 160gb  to the 80gb in iTunes using Windows Vista.
    Nothing seems to help on the Apple support pages, so any help would be appreciated
    Thanks

    Thanks for the reply, but not actually sure how to sync a second iPod with the library of the first, as I thought it would not recognise a new iPod for copyright reasons.
    Also, the files are in a location on the pc but I had to do lots of formatting amendments in iTunes as most of the stuff was on mp3 files and the formatting was all over the place. I did not want to loose any of the work by simply asking the new iPod to look at the original file and would rather copy en masse from one device to another.
    Any help or pointers greatly appreciated
    Thanks

  • How can I move an existing iTunes library from a Dell PC (which uses Windows Vista) to a MacBook Pro?  I have tried to copy the library from the PC onto a memory stick but cannot move from the stick onto the MacBook Pro.

    I have tried to copy my iTunes library from my old (2008) Dell PC to a 32 GB memory stick and then copy it from the stick to the iTunes library in the new MacBook Pro which I purchased recently from a reputable dealer which resells refurbished Macs, (lease returns, etc).  The dealer was Computer Trends store in Saskatoon.  They told me how to move my existing iTunes libary from the PC to the Mac but I cannot seem to achieve that objective.  The Mac does not seem to recognize the memory stick.  I thought the Mac would recognize that the memory stick held iTunes files and would then transfer them without prompting to its own iTunes libary.  It did not do so.  I have therefore tried to find the command sequence within iTunes (on the Mac) for moving the material from the memory stick to the iTunes library.  Cannot find those commands.  Does anybody know where to find such commands.  I have to say, I am really disappointed that such a simple function would prove to be beyond my capabilities.  I thought the Mac was supposed to be easier than a PC.  !!!  Oh well, I am hoping this forum will help !!!

    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.
    So, you can see your whole iTunes folder on the memory stick after copying from the PC?

  • I have an iPhone 5s and an iPad 2 both using the same Apple ID how can I FaceTime the iPad from the iPhone?

    I have an iPhone 5s and an iPad 2 both using the same Apple ID sometime I'd like to FaceTime the iPad from the iPhone to talk to my wife while at work how can I get it to do this it always says unavailable.

    Naw I figure it out without all that had to go into the FaceTime settings and only use the phone number on the iphone and only use the Apple ID on the iPad works great now no need for two Apple ID or any signing in and out.
    Thanks for your help though

  • I managed to transfer the music from 1 pc to 1 other pc (to be played by iTunes). Bit didn't fixe the transfer of the meta data (for example the rating). Does anyone know how to use your old playlists, etc..(= meta data) on the other PC? So, please help!

    I managed to transfer the music from 1 pc to 1 other pc (it is played perfectly on the other PC (Windows 7- pc) by the newly downloaded and installed iTunes, version 10.6.1.7). But I didn’t fix the transfer of the meta data (for example the rating). Does anyone know how to use (or import) your old playlists, etc..(= meta data) on the other PC? So, short: how to migrate the meta data from one pc to an other pc?
    It's a pity that it seems not to be possible to import on the new pc e.g. the ratings!!!
    I don't want to start again with rating my (beautiful classical) music!
    Thanks, from Amsterdam, NL

    Did you do the move via Home Sharing, astro?
    If so, perhaps try the instructions from the following post:
    Re: i transfered itunes to my pc playlists did not go

  • I have $8.05 balance on my gift card. I tried to buy an app more expensive than that so i had to add my credit card to the apple account. But I couldn't use the balance from the gift card anymore. How can I select to use it? or did I lose it?

    I  have $8.05 balance on my gift card. I tried to buy an app more expensive than that so i had to add my credit card to the apple account. But I couldn't use the balance from the gift card anymore. How can I select to use it? or did I lose it?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The MAS should use any credits first and then apply the remainder to a listed bank card.

Maybe you are looking for