I can't get the construct of the strings right. Can anyone help please?
Here's what it is at present.
bargraph0:
Lcdcmdout LcdLine2Home
Lcdout s_p, " ", "0 "
WaitMs 1
Goto freq
bargraph1:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, " "
WaitMs 1
Goto freq
bargraph2:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, 1, " "
WaitMs 1
Goto freq
bargraph3:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, 1, 2, " "
WaitMs 1
Goto freq
bargraph4:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, 1, 2, 3, " "
WaitMs 1
Goto freq
bargraph5:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, 1, 2, 3, 4, " "
WaitMs 100
Goto freq
bargraph6:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, 1, 2, 3, 4, 5, " "
WaitMs 1
Goto freq
bargraph7:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, 1, 2, 3, 4, 5, 6, " "
WaitMs 1
Goto freq
bargraph8:
Lcdcmdout LcdLine2Home
Lcdout s_p, #sr, " ", 0, 1, 2, 3, 4, 5, 6, 7, " "
WaitMs 1
Goto freq
So how do I do
mask = LookUp(" ", "0 ", #sr, " ", 0, " ", #sr, " ", 0, 1, " "), var
lcdcmdout s_p, mask
Regards - Paul