Updating Continuous contour data à partir d'un fichier .txt

Bonjour,
           J'ai une trajectoire dans un fichier .txt (environ 3000 points à une fréquence de 100Hz) que je veux lire et updaté la commande à l'actionneur à coup de 40 éléments. En me basant sur l'exemple Continuous Axis Contour Move, y a-t-il quelqu'un qui a une idée de comment faire intégrer l'envoi des données?
Merci

Bonjour Math50,
Merci d'avoir posté sur le forum de National Instruments.
L'idée de départ pour résoudre votre problème est de remplacer, dans l'exemple, la sinus( ou autre) générée, par les points (40 ou autres en fonction de la table déclarée) qui proviennent de votre fichier texte.
En terme d'architecture, soit vous réalisez la lecture au sein de votre boucle while, ce que vous pourrez faire avec les VI E/S sur fichier (ASCII); soit en utilisant une structure producteur/consommateur qui vous permet de lire votre fichier texte dans une premiere boucle (productrice), d'envoyer les points dans une pile (FIFO) et de les récupérer dans la boucle (consommatrice) pour les utiliser.
Bonne journée,
Flo
Open Diagram First

Similar Messages

  • Configurat​ion port COM à partir d'un fichier .txt

    Bonjour,
    je souhaiterai pouvoir configurer mon port COM (Baud rates, data bit, stop bit, parity, flow control, visa ressource name) à partir d'un fichier .txt . Cette configuration ci-jointe sera utilisée pour la communication avec une enceinte climatique.
    Je pensais à un fichier txt de la forme suivante :
    Enceinte Climatique 1
    Baud rates
    data bit
    stop bit
    parity
    flow control
    visa ressource name
    Cdt
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Configuration port COM à partir d'un fichier txt.vi ‏12 KB

    Hello,
    Moi je ferais ça:
    Cela permet de traiter les fichiers de config de façon "propre", de ne lire que les clés qui t'intéressent (tu peux en ajouter d'autres sans problèmes).
    Il est facile de faire l'opération inverse, à savoir écrire dans le fichier de config.
    Je joins le fichier qui va avec, et le vi.
    Francis M | Voir mon profil
    Certified LabVIEW Developer
    Pièces jointes :
    Configuration port COM à partir d'un fichier txt.vi ‏29 KB
    config.ini ‏1 KB

  • Configurat​ion d'un port COM à partir d'un fichier .txt

    Bonjour,
    je souhaiterai pouvoir configurer un port COM à partir d'un fichier .txt , quelle est la démarche à suivre ?
    Cdt
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Config port COM.vi ‏14 KB

    Je ne comprends pas trop cette demande.
    Je n'ai jamais utilisé de "port COM" ... mais peu importe (il me semble)
    les fonctions "write text file" et "read text file" sont présentes dans la palette I/O.
    Si les paramètres de configurations sont enregistrés dans un fichier texte suivant un certain "formatage" (à définir)
    il suffit de relire le dit fichier texte, de démultiplexer les informations suivant le formatage,  (le formatage est connu, puisque déjà utilisé lors de l'écriture)
    convertir les différentes sous-chaines dans le type approprié (procédure inverse de celle utilisée lors de l'écriture du fichier texte)
    et pour terminer ... injecter les paramètres dans le code de configuration.
    ou alors je n'ai pas compris "le besoin" ... ce qui est toujours possible.

  • Scenario à partir d'un fichier txt

    Bonjour,
    Je souhaiterais réaliser un programme pour créer ou modifier un scénario à partir d'un fichier .txt
    Quelle architecture me permettrait d'ajouter des étapes en cliquant sur le bouton "suivant" et modifier en revenant sur "précédent" ? (Comme illustrée sur la PJ)
    De plus je souhaiterais pouvoir tracer mon profil au fur et à mesure, faut-il utiliser un graphe déroulant ?
    Cdt
    Pièces jointes :
    Scenario.JPG ‏63 KB
    Interface_Scenario.vi ‏31 KB

    J'ai pensé à une alternative, enregistrer mes données dans un tableau de cluster, étape par étape puis une fois le scénario terminée je souhaiterai pouvoir enregistrer ces données dans un fichier .txt pour pouvoir les réécrire. 
    Cdt

  • IDOC to update business partner data in FSRI(part of CRM system) .

    Hi ,
    I want to know an INBOUND IDOCs to update business partner data in FSRI (part of CRM system) .
    Please help .
    Regards
    Chetan
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Dec 21, 2010 5:14 PM
    Moderator message -
    Also, when closing old threads, there is no need to add a comment. Adding a pasted answer like "rectified" only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.
    Edited by: Rob Burbank on Dec 21, 2010 1:20 PM

    Mass not available in 4.0, could write your own LSMW routine but you still will create bdocs for updates so not sure how that will improve your performance.

  • Is there any API to update cost cutoff date?

    Hi All,
    Is there any API to update cost cutoff date?

    Hi,
    As per Oracle we have below APIS for locator in WMS,
    - Create Locator API to create a new locator (CREATE_LOCATOR)
    - Update Locator API to update an existing locator (UPDATE_LOCATOR)
    - Locator Item Tie API to assign an item to a locator (CREATE_LOC_ITEM_TIE)
    - Delete Locator API to delete an existing locator (DELETE_LOCATOR)
    The APIs are part of PL/SQL package INV_LOC_WMS_PUB. This is defined in
    $INV_TOP/patch/115/sql/INVLOCPS.pls.
    You can search *"Locator Maintenance Application Program Interface"* in Metalink or MFGAPI for details.
    Hope it helps
    Kind Regards,
    S.P DASH

  • OS X.4 Clients didn't update it's date & time when using OS X.5 NTP Server

    Yesterday, I posted the problem we are having with the X.4 Clients that do not update their time & Date from the X.5 Leopard Server. We just installed and setup the file sharing part of our Mac OS X Server 10.5 Leopard on a PowerMac G5 and is working fine so far. Now I'm trying to setup the clients to synchronize their time with the server. I followed the instructions in the Network Services Admin paper, including the Enable Network Time Server (NTP) in the General Tab of the Server Admin program and pointing the clients to the network ip address of the server. It doesn't work. Yesterday, I thought that it was because i tried to do it after the start up and they were already synchronized, but today after a cold start today, still nothing happened. Probably it's because the server is not connected to the internet and we are updating the time on the server manually, it is connected to the LAN using a fixed IP Address entered manually. This work for the File Sharing but apparently not for NTP. It is a problem for us cause we have time dependent applications running. Any help will be greatly appreciatted.
    Thanks.

    Mike -
    See this:
    http://discussions.apple.com/thread.jspa?messageID=6712727#6712727

  • Popup screen it is updating the master data

    hi all,
    when I open sales order and open header information part or Partner tab and if I am double clicking on payer I get an popup screen in this I can see the address details but if I am changing the Name of payer in that popup screen it is updating the master data. I am not able to get how It is happening.
    Is there any problem with the customer creation ? or is it an SAP bug .
    Need you advice .

    Hi mayank,
    Option of changing the data in the customer details at the partnertab is a standard functionality.
    But that will be limited to that particular document only.
    It shouldn't impact the customer master. Kindly check again.
    Regards
    Gurunadh

  • Error While updating Process form data Using Scheduler

    Hi All,
    I am trying to update Process form data (ex : lastname) using a scheduled task Code. I am getting Error while updating Field.
    Code :
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("UD_EBS_PF_LASTNAME", "lastname");
    formintf.setProcessFormData(instancekey, map);  //I AM GETTING AT THIS LINE
    Saying
    Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl_1036_WLStub.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
        at $Proxy2.setProcessFormDatax(Unknown Source)
        at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.security.Security.runAs(Security.java:41)
        at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
        at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
        at $Proxy3.setProcessFormData(Unknown Source)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.execute(AssignRandomPasswordToAllUsersSchedulerTest.java:182)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.main(AssignRandomPasswordToAllUsersSchedulerTest.java:63)
    Caused by: Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:761)
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto

  • Can not update request in data target

    Hi,
    We have a process chain for master data (10 parallel) loads.  One of the load
    failed with error "can not update request REQU_46xxxxxxxxxxxxxx in data target".
    When I checked the InfoPackage
    (a) update: full load
    (b) it has data selection
    (c) processing :PSA and then to data targets
    (d) Data targets: update in all data targets for which active rules exist.
    But I do not see any list of data targets here.
    Can some one please suggest me how do I correct this load failure.
    Thanks

    Hi Wondewossen, NS and Nagesh,
    Thanks for the information. I am in support, and the developer is
    not here now.
    I have checked Header tab in the monitor, in this there
    is a update symbol and infosource name and an -->
    but after arrow there is nothing.
    when I click on this I get a message
    "No active update rules exist".
    Can you please advice me how to I correct this.
    Thanks

  • Update 100 Row Data In One Time against a Code

    Dear Expert,
    How can I update a Master Data Row Table record using a particular code. Like I write a query Update Table Set U_UDF = 'Value' Where Code = 2
    U_UDF is the field of Master Data Row Table's field. There are 100 Row against code 2 & I want to update all row with same value but in one time only.
    How can I do that ?
    Plz help me.
    Regards

    Hi,
    Try this:
    SAPbobsCOM.GeneralService oGeneralService = null;
                                                    SAPbobsCOM.GeneralData oGeneralData = null;
                                                    SAPbobsCOM.GeneralDataParams oGeneralParams = null;
                                                    SAPbobsCOM.CompanyService sCmp = null;
                                                    SAPbobsCOM.GeneralData oChild = null;
                                                    SAPbobsCOM.GeneralDataCollection oChildren = null;
                                                    sCmp = SBO_Company.GetCompanyService();
                                                    oGeneralService = sCmp.GetGeneralService("UDO");
                                                    // Get UDO record 
                                                    oGeneralParams = ((SAPbobsCOM.GeneralDataParams)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                                    oGeneralParams.SetProperty("Code", ContractCode);
                                                    oGeneralData = oGeneralService.GetByParams(oGeneralParams);
                                                   // Add lines on UDO Child Table 
                                                    oChildren = oGeneralData.Child("CONTRACTDETAIL");
                                                    // Update an existing line 
                                                    oChild = oChildren.Item(LineId - 1);
                                                    DateTime dt = DateTime.Now;
                                                    oChild.SetProperty("U_STATS", "Terminated");
                                                    oChild.SetProperty("U_Updated", dt);
                                                    oChild.SetProperty("U_Remarks", "Service Terminated");
    //Update the UDO Record
                                                    oGeneralService.Update(oGeneralData);
    I have given you the sample. Just change it accordingly.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Insert/update japanese langunage data in a column of datatype varchar2(..)

    Hello,
    I am using ORACLE DATABASE 11g (EE) and RHEL 5.
    I want to insert/update japanese language data in a column which has the datatype as varchar2(256).
    I tried to change the NLS_LANGUAGE and NLS_TERRITORY parameters with 'ALTER SESSION set ...' command but no effect.
    I tried to bounce back ( shutdown and startup ) the DB but still no effect.
    I tried to inset the NLS_LANGUAGE and NLS_TERRITORY in init.ora file but still no use.
    If anybody knows the detail steps which i have mentioned above .... let me know. Might be that i am wrong in my method.
    Can you please guide me how to change the language of DB for a perticular session to japanese ???
    Thanks in advance...
    Edited by: VJ4 on May 9, 2011 6:21 PM

    VJ4 wrote:
    Thanks for the info.
    Yes i tried with UNISTR function and was able to insert the data successfully.
    but the point is that we can't remember unicode for each of the letter. It's their any method that we can directly insert japanese character using an insert.
    As you said :-
    Note that changing database character set is something complicated that requires many steps.
    Can you please provide me some links or some stuffs to study about the detail steps of chaining database character set.
    I have gone through the Oracle online documentation.. if you can pin point any good link in it you can else provide me some other stuff.
    Thanks .You will need to convert your database characterset to AL32UTF8. This is not a trivial exercise if your database already has data in it. See these MOS Docs
    Changing the NLS_CHARACTERSET to AL32UTF8 / UTF8 (Unicode)          (Doc ID 260192.1)
    AL32UTF8 / UTF8 (Unicode) Database Character Set Implications          (Doc ID 788156.1)
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#g1011430
    HTH
    Srini

  • Remote and direct update of master data at the same time

    Hello
    Is it possible to do remote and direct update of master data at the same time? If yes where it could be used?
    Thanks

    Hi,
    What do you mean by Remote Update ?
    regards
    Happy Tony

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • Prevent multiple users from updating coherence cache data at the same time

    Hi,
    I have a web application which have a huge amount of data instead of storing the data in Http Session are storing it in coherence. Now multiple groups of users can use or update the same data in coherence. There are 100's of groups with several thousand users in each group. How do I prevent multiple users from updating the cache data. Here is the scenario. User logs-in checks in coherence if the data there and gets it from coherence and displays it on the ui if not get it from backend i.e. mainframe systems and store it in coherence before displaying it on the screen. Now some other user at the same time can also perform the same function and if don't find the data in coherence can get it from backend and start saving it in coherence while the other user is also in the process of saving or updating. How do I prevent this in coherence. As have to use the same key when storing in coherence because the same data is shared across users and don't want to keep multiple copies of the same data. Is there something coherence provides out-of-the-box or what is best approach to handle this scenario.
    Thanks

    Hi,
    actually I believe, that if we are speaking about multiple users each with its own HttpSession, in case of two users accessing the same session attribute in their own session, the actually used cache keys will not be the same.
    On the other hand, this is probably not what you would really like, you would possibly like to share that data among sessions.
    You should probably consider using either read-through caching with the CacheLoader implementor doing the expensive data retrieval (if the data to be cached can be obtained outside of an HTTP container), or side caching with using Coherence locks or entry-processors for concurrency control on the data retrieval operations for the same key (take care of retries in this case).
    Best regards,
    Robert

Maybe you are looking for

  • Help with more than one apple id on same computer

    When my husband tries to do anything in his itunes library he gets the following error message, "This computer is already associated with an apple id  You can download past purchases on this computer with just one apple id every 90 days.  This comput

  • Why doesn´t the plugins show up after installation and restart?

    In previous versions I have never had plugin problems, but now I have updated to version 13 of Elements and even after several reinstallations of both this program and the plugins these never show up. The possibility to choose a map manually works, b

  • Movement type 101 for receiving plant for returning stock

    all, This may sound a silly question, but I just want to double check and double confirm. Our plant supplying stock to another plant (let's call plant B), however, sometimes the plant B will return back unacceptable stock back to us. What plant B do

  • Help? PSE 7 not starting after reinstallation.

    on starting ps7 I get screen message: 'Adobe Elements 7.0 has encountered a problem and needs to close'.  I then get options of 'close' or 'debug'. debug does nothing. The error information is: 'Modname adobelmlnhr.libfnp.dll Mod version 11.5.0.0 and

  • HT4623 There is no software update  option on my ipod and I cant update!!!???

    I have an iphone 5 and have no probs. My old ipod touch is being used by my daughter but she is unable to download games as IOS 4.3 is needed. In settings, the software update option is not there? How can I do the update??