10 Replies Latest reply: Feb 24, 2012 12:39 PM by ptc-4346041

# Variable duree table pulse

Hello,

My term variable is an array that contains only 0 while yet I say:

My intention is to set the pulse durations in a table.

Where is my mistake?

thank you

• ###### Re: Variable duree table pulse

You need to use the operator "Less Than":

• ###### Re: Variable duree table pulse

This does not change the table 'duree' is always 0 on all lines while I wait in this table the pulse duration;

• ###### Re: Variable duree table pulse

Thank you but this doesn't change the table

• ###### Re: Variable duree table pulse

rfd in you sheet is either 0 or 3.142, so the program modification that Vladimir gave works correctly, it's your choice of boolean test values that is the problem?

• ###### Re: Variable duree table pulse

You say my choice of boolean ?! A boolean that is true or false

I would just do this:

When rfs 3142 is in line 16 then I put the value of TPAS = 1603 in a table.

When rfs 3142 is in line 31 then I put the value of TPAS = 3106 in a table.

when Rfs is 3142 then the line 79 so I put the value of TPAS = 7916 in a table.

when Rfs is 3142 then the line 94 so I put the value of TPAS = 9419 in a table.

So with my Duree2, I have the duration of the pulses.

Can you to help me, please, it's almost the end

• ###### Re: Variable duree table pulse

Sorry, what I ment is that you were testing for valuse between 0.1 and 2.0, but |rfd| is not within this range, so all results are correctly set to 0.

I don't know what you are doing, not my area. But I don't see how the program gives you a pulse duration.

Do you want to increase the value of tpas by one everytime the absolute value of the corresponding value of rfd is nonzero?

I

• ###### Re: Variable duree table pulse

Excuse me,

I want to do :

When rfd 3142 is in line 16 then I put the value of TPAS = 1603 in a table.

When rfd 3142 is in line 31 then I put the value of TPAS = 3106 in a table.

when rfd is 3142 is in the line 79 then I put the value of TPAS = 7916 in a table.

when rfd is 3142 is in the line 94 then I put the value of TPAS = 9419 in a table.

ETC...

So with my Duree2, I have the duration of the pulses. exemple : one row : 3106 - 1603 = 1503

Do you have understand ?

Thank you very much

• ###### Re: Variable duree table pulse

you must to take the file : 16.xmcd

• ###### Re: Variable duree table pulse

Just in case this helps, I added programs to produce the following, I know its not in the terms you want, but you can modify easily enough.

• ###### Re: Variable duree table pulse

thank you very much but i have to find the answers.

See in file attached.

Thank you again.