It is currently Mon Sep 06, 2010 4:23 am




Post new topic Reply to topic  [ 8 posts ] 
 mask question 
Author Message

Joined: Sun Mar 21, 2010 9:13 pm
Posts: 24
Post mask question
I have a code come back that look like this uu263401, so in need for the triger to only see uu2<mask>01. each number is an input and the last two is unit address. let know the best way to make this work. mark


Fri Jul 30, 2010 12:51 am
Profile

Joined: Fri Nov 28, 2008 3:24 pm
Posts: 270
Post Re: mask question
As mentioned before, more complex parsing like that should be handled through MLScript... Though uu2<mask>01 should work fine.

_________________
MLComDevice: Control serial/TCP device (ASCII/hex), MLSchedule: Alternative to MLScheduler
MLBeyondTV and MLSageTV: PVR support, TChanger: Sony 400 disc Bluray changer
TRadio: Sirius/HD/XM radio, TChart: Chart from variable, Android apps Wiki


Fri Jul 30, 2010 2:23 am
Profile

Joined: Sun Mar 21, 2010 9:13 pm
Posts: 24
Post Re: mask question
l'm still having problem to get it working, what i need to do is to have a start mask and end so i can have the first three number not seen only put the 4 number in variable and remove the last 2 number.
so unit send back uu111801. can i use <start>uu111<mask>01<end>
or is there away i can do it this way uu<mask1><mask2><mask3><mask4>01, then i could have a macro|setvariable|<device>_output1~<mask1>!setvariable|<device>_output2~<mask2>.and so on


please let me know how to do this mark


Sun Aug 01, 2010 12:00 am
Profile

Joined: Fri Nov 28, 2008 3:24 pm
Posts: 270
Post Re: mask question
MARK wrote:
l'm still having problem to get it working, what i need to do is to have a start mask and end so i can have the first three number not seen only put the 4 number in variable and remove the last 2 number.
so unit send back uu111801. can i use <start>uu111<mask>01<end>

But uu111<mask>01 already does that... I don't see what the <start> and <end> are supposed to be adding...

Quote:
or is there away i can do it this way uu<mask1><mask2><mask3><mask4>01, then i could have a macro|setvariable|<device>_output1~<mask1>!setvariable|<device>_output2~<mask2>.and so on

No, the logic only supports 1 mask. But using uu<mask>01, and parsing mask either through MLScript or MLString, you should be able to do what you want...

_________________
MLComDevice: Control serial/TCP device (ASCII/hex), MLSchedule: Alternative to MLScheduler
MLBeyondTV and MLSageTV: PVR support, TChanger: Sony 400 disc Bluray changer
TRadio: Sirius/HD/XM radio, TChart: Chart from variable, Android apps Wiki


Sun Aug 01, 2010 7:18 pm
Profile

Joined: Sun Mar 21, 2010 9:13 pm
Posts: 24
Post Re: mask question
Fonceur wrote:
MARK wrote:
l'm still having problem to get it working, what i need to do is to have a start mask and end so i can have the first three number not seen only put the 4 number in variable and remove the last 2 number.
so unit send back uu111801. can i use <start>uu111<mask>01<end>

But uu111<mask>01 already does that... I don't see what the <start> and <end> are supposed to be adding...

Quote:
or is there away i can do it this way uu<mask1><mask2><mask3><mask4>01, then i could have a macro|setvariable|<device>_output1~<mask1>!setvariable|<device>_output2~<mask2>.and so on

No, the logic only supports 1 mask. But using uu<mask>01, and parsing mask either through MLScript or MLString, you should be able to do what you want...



OK, then how do i write command , if the unit return 1246 and i what to have 4 variable show output1 2,output2 2 output3 4 output4 6
let me know mark


Sun Aug 01, 2010 8:45 pm
Profile

Joined: Sun Mar 21, 2010 9:13 pm
Posts: 24
Post Re: mask question
OK, then how do i write command , if the unit return 1246 and i what to have 4 variable show output1 2,output2 2 output3 4 output4 6
let me know mark


Thu Aug 05, 2010 9:38 pm
Profile

Joined: Fri Nov 28, 2008 3:24 pm
Posts: 270
Post Re: mask question
Sorry, I had never used MLString, so thought David might know how... ;)

Macro|MLStrings|Left~output1~<Mask>~1!MLStrings|Mid~outputr2~<Mask>~2~1!MLStrings|Mid~output3~<Mask>~3~1!MLStrings|Right~output4~<Mask>~1

_________________
MLComDevice: Control serial/TCP device (ASCII/hex), MLSchedule: Alternative to MLScheduler
MLBeyondTV and MLSageTV: PVR support, TChanger: Sony 400 disc Bluray changer
TRadio: Sirius/HD/XM radio, TChart: Chart from variable, Android apps Wiki


Fri Aug 06, 2010 4:13 pm
Profile

Joined: Sun Mar 21, 2010 9:13 pm
Posts: 24
Post Re: mask question
Fonceur wrote:
Sorry, I had never used MLString, so thought David might know how... ;)

Macro|MLStrings|Left~output1~<Mask>~1!MLStrings|Mid~outputr2~<Mask>~2~1!MLStrings|Mid~output3~<Mask>~3~1!MLStrings|Right~output4~<Mask>~1


Thank you that works perfect, that give me some understanding of how it works. Mark


Sun Aug 08, 2010 4:11 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
 cron