Has anyone implemented JavaScript Object Notation in LabVIEW?

Hi Guys,
I was looking at writing an application using JSON-RPC
http://en.wikipedia.org/wiki/JSON-RPC
Has anyone implemented something similar, or are there any examples of this?
I was going to write it with TCP VIs, and use string parsing to work through any responses, but if anyone had some advice, it would be appreciated.
Cheers,
Anthony

Anthony,
This sounds like a very interesting project and I would like to hear how it goes for you.
You can of course choose to implement a JSON-RPC system using either TCP or HTTP as the transport. TCP would give you a potentially more responsive system but you would have to implement much more of the system from scratch as it were.
As LaRisa_s was saying, if LabVIEW 8.6 is available to you, you can take advantage of the Web Services feature which will do a lot of the work for you. Your VI that runs as a web service would have to parse the data sent from the client to determine the correct VI to call and then convert the parameters and call the VI.
You are completely correct that there is no direct support for JSON-RPC. We evaluated several Web Service and RPC mechanisms before deciding on RESTful web services for LabVIEW 8.6. In fact, if you have LV8.6 and JSON-RPC isn't a hard requirement, I would strongly recommend looking at using the RESTful mechanism that is built in. If you can use it then much less work will be required of you on the server side of your application.
If you do need to go with JSON-RPC I would be interested to hear what factors went into the decision so we can improve LabVIEW's built in web services.
Either way- let us know how your project goes.

Similar Messages

  • Comment interfacer Labview avec JSON (JavaScript Object Notation) or AMF (Action Message Format) ?

    Bonjour,
    Comment interfacer Labview avec JSON (JavaScript Object Notation) or AMF (Action Message Format) en envoi et réception ?
    Pourriez vous m'indiquer la procédure ?
    Si vous avez des exemples ?
    Merci d'avance et bon week-end.
    Seb 

    Bonjour,
    Pour vos post en français, je vous invites à poster sur cette rubrique du forum:
    Discussions de produit de NI.
    Pouvez vous décrire pourquoi vous voulez vous interfacer avec du JSON ou du AMF?
    Cordialement
    Yann C.
    France

  • Comment interfacer Labview avec JSON (JavaScript Object Notation) ou AMF (Action Message Format) ?

    Bonjour,
    Comment interfacer Labview avec JSON (JavaScript Object Notation) ou AMF (Action Message Format) en envoi et réception ?
    Le but est d'automatiser le test et paramètrage de nos produits.
    Nos produits possèdent une interface web utilisant le protocole AMF sur http.
    Pourriez vous m'indiquer la procédure ? 
    Si vous avez des exemples ?
    Merci d'avance,
    Seb 

    Message Edité par Jérémy Marliot le 11-13-2009 03:11 AM
    Jérémy M. | Certified LabVIEW Developer
    Design Engineer - LinkedIn - Contact
    Don't forget to give Kudos to good answers.
    N'oubliez pas de donner un compliment aux bonnes réponses.

  • Has anyone implemente​d a QUADRATURE IN / QUADRATURE OUT applicatio​n using the Compact FieldPoint​?

    Has anyone implemented a QUADRATURE IN / QUADRATURE OUT application using the Compact FieldPoint? The units being used are the cFP-QUAD-510 [input] and the cFP-CTR-500 [output]. What I would like to do is use the QUAD-510 to capture a quadrature signal from a sensor, which in turn would generate a count per quadrature detection. Within LabVIEW, adjust the count received. Then, output a quadrature signal, based on the adjusted count, using The CTR-500.

    Hello Andre,
    Thanks for your response. That example does provide the output desired, and it is currently being use in my application, along with the 32-bit counter example available via NI for the QUAD-510, which also works. My query was mainly geared to find out if an application with the characteristics described in my original question has already been implemented, this, to avoid "re-inventing the wheel." Additional input on this thread is welcome and appreciated. Thanks.
    Regards,
    Dag Gollopp

  • Has anyone implemented real time datasource for COPA ?

    Hello,
    Has anyone implemented a real time data source for COPA ? Please share details of the process for how this can be set up. Thanks.

    Hi,
    Please follow the following steps...
    COPA Extraction
    The below are the command steps and explanation. COPA Extraction -steps
    R/3 System
    1. KEB0
    2. Select Datasource 1_CO_PA_CCA
    3. Select Field Name for Partitioning (Eg, Ccode)
    4. Initialise
    5. Select characteristics & Value Fields & Key Figures
    6. Select Development Class/Local Object
    7. Workbench Request
    8. Edit your Data Source to Select/Hide Fields
    9. Extract Checker at RSA3 & Extract
    BW
    1. Replicate Data Source
    2. Assign Info Source
    3. Transfer all Data Source elements to Info Source
    4. Activate Info Source
    5. Create Cube on Infoprovider (Copy str from Infosource)
    6. Go to Dimensions and create dimensions, Define & Assign
    7. Check & Activate
    8. Create Update Rules
    9. Insert/Modify KF and write routines (const, formula, abap) 
    10. Activate 
    11. Create InfoPackage for Initialization 
    12. Maintain Infopackage 
    13. Under Update Tab Select Initialize delta on Infopackage 
    14. Schedule/Monitor 
    15. Create Another InfoPackage for Delta 
    16. Check on DELTA OptionPls r 
    17. Ready for Delta Load
    LIS, CO/PA, and FI/SL are Customer Generated Generic Extractors, and LO is BW Content Extractors.
    LIS is a cross application component LIS of SAP R/3 , which includes, Sales Information System, Purchasing Information System, Inventory Controlling....
    Similarly CO/PA and FI/SL are used for specific Application Component of SAP R/3.
    CO/PA collects all the OLTP data for calculating contribution margins (sales, cost of sales, overhead costs). FI/SL collects all the OLTP data for financial accounting, special ledger
    1) Add the fields to the operating concern. So that the required field is visible in CE1XXXX table and other concerned tables CE2XXXX, CE3XXXX etc.
    2) After you have enhanced the operating concern then you are ready to add it to the CO-PA data source. Since CO-PA is a regenerating application you can't add the field directly to the CO-PA data source. You need to delete the data source and then need to re-create using KEB2 transaction.
    3) While re-creating the data source use the same old name so that there won't be any changes in the BW side when you need to assign the data source to info-source. Just replicate the new data source in BW side and map the new field in info-source. If you re-create using a different name then you will be needing extra build efforts to take the data into BW through IS all the way top to IC. I would personally suggest keep the same old data source name as before.
    If you are adding the fields from the same "Operating concern" then goto KE24 and edit the dataaource and add your fields. However if you are adding fields outside the "Operating concern" then you need to append the extract structure and        populate the fields in user exit using ABAP code.   Reference OSS note: 852443
    1. Check RSA7 on your R3 to see if there is any delta queue for COPA. (just to see, sometimes there is nothing here for the datasource, sometimes there is)
    2. On BW go to SE16 and open the table RSSDLINIT
    3. Find the line(s) corresponding to the problem datasource.
    4. You can check the load status in RSRQ using the RNR from the table 
    5. Delete the line(s) in question from RSSDLINIT table 
    6. Now you will be able to open the infopackage. So now you can ReInit. But before you try to ReInit .... 
    7. In the infopackage go to the 'Scheduler' menu > 'Initialization options for the source system' and delete the existing INIT (if one is listed)                                                                               
    Regards,
    Tapan

  • Has anyone implemented Oracle Pricing Analytics(7.9.6.4) with source EBS

    Hi all,
    Has anyone implemented Oracle Pricing Analytics(7.9.6.4) with source EBS?
    Need urgent help!
    Thanks in Advance

    Hi Kashi,
    Thanks for your response. However, we are implementing Oracle Price Analytics using universal adaptor for EBS as source.
    In BI apps 7.9.6.4, one approach is to populate the csv files and load using universal adaptor. Can anyone tell me what are the tables in EBS that I need to consider to populate these files for pricing analytics?
    Are there any SQL queries available to populate pricing csv files?
    Any help will be appreciated.

  • Has anyone implemented Google Blog Search into BC (like Wordpress has)?

    Hi:
    I have a "potential" client interested in an automated way to show a list of other blogs and websites where they were mentioned.  I am imagining this to work like the Google Blog Search that Wordpress Admin Dashboard has, where it searches for who has linked to your site and shows you a list.  Can this be done in BC?  Has anyone implemented something like this?
    Thanks in advance.

    If you are referring to 'Trackbacks' then yes it can.

  • Has anyone implement paging / page breaks in long content items?

    Has anyone implement paging / page breaks in long content items? Eg when a text item is long it would be nice if there was a portlet or something to be able to separate it in pages that fit in the users screen and display a message in the bottom like "page 1 of 3" etc with next and previous links.
    Any ideas?

    Oracle has a pretty good Oracle By Example on OTN covering this at [http://www.oracle.com/technology/obe/obe1014portal/html_templates/html_templat.htm]. I'd also recommend following on with the one on Item Placeholders to complete the picture [http://www.oracle.com/technology/obe/obe1014portal/item_placeholders/itmplacehold.htm].
    My announcements are text items in one region. The region has a HTML content layout that uses pl/sql to determine where the first space is after 650 characters and if it is larger than 650 characters opens the item in a page using the item placeholder (hence my suggestion above). The code to generate this looks like this on the template. v_length is declared at the top of the tempalte so it is easy to change the length of the announcements:
          IF LENGTH ('#ITEM.CONTENT#') > v_length THEN
          v_space := INSTR('#ITEM.CONTENT#',' ',v_length,1); /*Find first space after designated length*/
             HTP.p('
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
        <tr>
          <td>#ITEM.IMAGE#</td><td valign="top">' || SUBSTR ('#ITEM.CONTENT#', 1, v_space) || '</td>
        </tr>
        <tr>
          <td align="right" colspan="2"> &lt;MORE...</td>
        </tr>
      </table>'
          ELSE
             HTP.p ('
       <table width="100%" cellpadding="3" cellspacing="0" border="0">
        <tr>
          <td>#ITEM.IMAGE#</td><td valign="top">#ITEM.CONTENT#</td>
        </tr>
      </table>'
          END IF;Check out the OBE's and post back with any questions. They can sometime be challenging to get to work just right, but you can do a lot with these templates.
    Rgds/Mark M.

  • Has anyone implemented Facebook SSO on Android using Adobe AIR ANE?

    Has Anyone implemented Facebook SSO on Android using Adobe AIR ANE?
    All help would be appreciated

    Hi,
    We have two ANE's for this, one is a basic single sign on and the other is a full FB API implementation.
    Single sign on:
    http://distriqt.com/product/air-native-extensions/facebook-utils
    Full API:
    http://distriqt.com/product/air-native-extensions/facebookapi
    Cheers

  • Has anyone implemented an AJAX spellchecker?

    has anyone implemented an AJAX spellchecker in APEX?

    Yeah, I'm kneeding a speel cheker two.
    does anyone have one that works with Ajax techniques??

  • AJAX retrieval using Javascript Object Notation (JSON) - How To

    I have written up a how-to on my blog, explaining the steps involved to implement AJAX functionality using JSON for data transmission. It uses a simple example where the user makes a selection from a select list and 2 values are returned from the database into page items. I found it pretty simple to implement.
    http://anthonyrayner.blogspot.com/2007/06/ajax-retrieval-using-javascript-object.html
    Hope you like it, feedback welcome!!
    Anthony.

    Duplicate post.
    Yann C.
    France

  • Has anyone interfaced an Instron 5500 with Labview?

    I'm trying to get my company to buy labview.  If I can get it to control an Instron 5500 they will be sold.  Has anyone attempted to do this?  Instron tells me that they do not have Labview drivers.

    I did a couple of Instrons with Labview a few years back, but they were older models (2725 and 2734 if my memory serves me right for numbers). I wrote the daq and machine control software in Labview from scratch. Neither of these machines was new enough to have a GPIB port, they were the type with the old mechanical recorder outputs. I had to re-work some of the machine mechanics and electrics to take a custom interface adapter from a NI Lab 1200 Daq card. I also had to build a custom extensometer for one unit. I don't know if I could be of any help to you, but I would be willing to work with you via e-mail and offer what assistance I can. I have 38 years in custom machine controls and general process instrumentation, so I have quite an extensive background to call upon. If you are interested drop me an e-mail at:
    [email protected]
    Dave

  • Has anyone implemented ChaRM in a 4-tier or 5-tier landscape?

    Iu2019ve setup ChaRM with a 3-tier landscape DV1-QA1-PRD and everything works as advertised. I used the transport route, DV1/120 -c- /QA1/ (clients 149/150) -QA1 -d- PRD/150. Where -c- is a consolidation route and -d- is a delivery route.
    Now I need to do a proof of concept to see if I can get CHaRM to work with our current landscape. We have a dual development path and need to make sure we sync our DEV and QA systems. The lanscape Iu2019m trying to use is DV1-QA1-PRD-DV2. The transport route Iu2019m trying is DV1/120 -c- /QA1/ (clients 149/150) -QA1 -c- PRD/150 -d- DV2/120. Iu2019ve tried various combinations and the only way I can get it to work is DV1/120 -c- /QA1/ (clients 149/150) -QA1 -d- PRD/150 -d- DV2/120. When I release and import into PRD it goes to both PRD and DV2. While this gets the transport to my support dev box I need to have another step in the workflow. What Iu2019m looking for is the workflow to act like dev-qa-qa-prd.
    Has anyone setup a 4-tier or 5-tier landscape with release and import steps between each system? If so what did you use for your transport route and were they other config changes needed after the route?
    Thanks for your time.
    Jeff

    Hi Jeff
    Have a look at these
    http://help.sap.com/saphelp_smehp1/helpdata/en/a3/0aae435a1342e8a56998d83a797161/content.htm
    /people/dolores.correa/blog/2009/08/27/change-request-management-scenario-retrofit-functionality
    Hope it helps
    Santosh

  • Has anyone implemente​d the Amulet Serial Protocol for LabVIEW?

    If not, is anyone interested in helping implementing one? I know a lot about the Amulet Serial Protocol, but nothing about LabVIEW. Willing to throw in an Amulet Starter Kit as well.

    Amulet Technologies (http://www.AmuletTechnologies.com) has a revolutionary technology which allows you to rapidly author a graphical user interface for LCD's (liquid crystal displays) using drag-n-drop HTML tools. In other words, Amulet is to LCD's like LabVIEW is to personal computers. Interfacing Amulet to an external device(s) for I/O is done through a serial connection.

  • Has anyone called the Solver dll in Labview?

    I have developed a non-linear mathematical model in Excel that uses it's Solver routine. I am currently trying to convert this over into the Labview environment because the equations are more manageable and the front panel interface is more marketable. However, I need the power of the Solver dll.
    Frontline Systems (www.solver.com) provides an evaluation version of the dll but I am new to this and I was wondering if anyone has done it and could provide a VI which calls this dll or has any suggestions, please?
    I think it would be pretty nifty if Labview could provide this sort of optimisation power. (It's current optimisation routines in the Mathematics toolbox are pretty limited and are not nearly as powerful as Solver)
    . But I'm sure a labview guru could configure a simple VI which calls the Solver dll for a multi-dimensional non-linear problems similar to Excel....
    Many thanks in anticipation!!!

    Hello �
    You might want to consider using a Call Library Function Node. This node supports a large number of data types and calling conventions. You can use it to call functions in most standard and custom-made DLLs and shared libraries.
    Refer to the Configuring the Call Library Function Node section of Chapter 2, Shared Libraries (DLLs), of the Using External Code in LabVIEW manual (attached) for more information about using the Call Library Node to call code from text-based programming languages.
    Hope this helps!
    S Vences
    Applications Engineer
    National Instruments
    Attachments:
    Call_Library_Function.pdf ‏2030 KB

Maybe you are looking for

  • Need help on access of network settings on apple tv 2

    Hi , can anyone tell me how to fix my apple tv, the remote will let me move across to general , but I can not access any of the following to change info , eg  can not access network , itune store , etc...I unpaired the remote and repaired it 3 times

  • Major problem. ipod skipping songs continuously

    I have a refurbished 160 gig ipod classic, purchased within the last month or so. I was listening on shuffle at work today, it suddenly started freezing at 0:00 of a song. So I closed the playlist and shuffled again, all was well. Well a while later,

  • I add components to contentPane, but JFrame still does not show them

    I converted a small game I was making from AWT to Swing.(The game is just MineSweeper.) I made all the necessary adjustments like, Button to JButton and add() to getContentPane().add(), but when I show the JFrame, it does not show any components that

  • How to remove the window options

    Hi, I want to remove the windows option like minimize, maximize and close symbol at the end of the windows title bar. wen making exe i click the option and only the main vi able to remove all this but in sub vi's all this elements is been disable.. i

  • CONDENSE

    hi there, after populating fields in custom segments in IDoc is it necessary to use CONDENSE on all these fields. if not what is the problem ? thanks in advance