Page 1 of 1

Horizontal slide value problem and Change bus number in .xmt

Posted: Tue 5. Mar 2013, 09:47
by Lufyoooo
Hi,

I have problem with panel using "horizontal slider" it didn't give the correct value,

I use "Horizontal slider" , "Rocker switch"


In horizontal slider I put the range between 1,2,3 and I give the horizontal slider signal "bus_number"
in Rocker switch if I clicked and give green color (value is 1) and grey color( value is 0)

so

I make the if statement in macro file

if bus_number.value = 2 and myRocketswitchsignal.value = 1
document.open("Mydocument")

when the busnumber still at "1" , I still could open the doc "Mydocument"

The Horizontal slide didn't give the correct value ,
and the Rocker switch gave the correct value.

so the Rocker switch is ok.

The problem Horizontal slide not only gave wrong value,

another are , I have 3 horizontal slide ,

I change First horizontal slide value from 1 to 2,
when I change the second horizontal slide from 1 to 2 , the first horizontal slide bar returned to 1, (so it's not good, the first horizontal should stay at position 2 not moving by itself when I change another horzontal slide)


do you have the same problem with using horizontal slide ? is there any solution for this?



I have one more question ,
I have 1 transmit list with bus number 1 , I want to change all the bus number to 2.

Do you know how to change the bus number from 1 to 2 in transmit list by using macro code?


Thank you so much.

Re: Horizontal slide value problem and Change bus number in

Posted: Tue 5. Mar 2013, 16:41
by K.Wolf
Hi,

to give you further product support, please send us your PCAN-Explorer 5 License ID and company name to support@peak-system.com

Thank you.