RE: [taste-users] Doubt about SDL language

[ Thread Index | Date Index | More lists.tuxfamily.org/taste-users Archives ]


 
You have to declare a variable to receive the parameter of your input signal. To do this, place a text box on the diagram and type:

dcl some_var typeE;

then you have your input: input some_input(some_var)
And from this, you can have your task:
namefunction := some_var!nameE

Let me know if this works with you.

Maxime

 
-----Verónica Gómez <verogomez92@xxxxxxxxxxx> wrote: -----

 =======================
 To: Maxime Perrotin <maxime.perrotin@xxxxxxx>, "taste-users@xxxxxxxxxxxxxxxxxxx" <taste-users@xxxxxxxxxxxxxxxxxxx>
 From: Verónica Gómez <verogomez92@xxxxxxxxxxx>
 Date: 06/24/2014 06:58PM 
 Subject: RE: [taste-users] Doubt about SDL language
 =======================
   In my specific case I have:
An input which has a parameter (this parameter is a sequence). This sequence has two field: nameE, typeE
If I want in a variable the nameE. 
TASK SYMBOL:nameFunction := #####
How is it done?

Date: Tue, 24 Jun 2014 17:12:44 +0200
From: maxime.perrotin@xxxxxxx
To: verogomez92@xxxxxxxxxxx; taste-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [taste-users] Doubt about SDL language


  
    
  
  
    Dear Verónica,

      

      The field separator for records is the exclamation mark

      So you can write in a task symbol:

      

      foo := Hello!world

      

      

      Best regards,

      Maxime

      

      

      

      On 06/24/2014 04:54 PM, Verónica Gómez wrote:

    
    
      
      Hello,
        

        
        I have a question about the SDL languaje. I need to get the
          field of a sequence and save it in a variable.
        How is it done?
      
    
    

    

    -- 

      
      ESA
      

      

       ESA - European
              Space Agency

        

        Maxime Perrotin

        Proba
          3 & Cheops Software Engineer

          System, Software and Technology Department

          

          ESTEC

          Keplerlaan 1, PO Box 299

          NL-2200 AG Noordwijk, The Netherlands

          maxime.perrotin@xxxxxxx
          | www.esa.int

          T +31 71 565 4923 | F +31 71 565 5420
      
      

      

    
  This message and any attachments are intended for the use of the addressee or addressees only.
The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its
content is not permitted.
If you received this message in error, please notify the sender and delete it from your system.
Emails can be altered and their integrity cannot be guaranteed by the sender.

Please consider the environment before printing this email.
 		 	   		      
This message and any attachments are intended for the use of the addressee or addressees only.
The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its
content is not permitted.
If you received this message in error, please notify the sender and delete it from your system.
Emails can be altered and their integrity cannot be guaranteed by the sender.

Please consider the environment before printing this email.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/