Rotary switch

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
RGV250
Posts: 457
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 46 times
Been thanked: 46 times

Re: Rotary switch

Post by RGV250 »

Hi Steve,
Thanks, I haven't been able to look yet as FC does not like my Win 7 machine these days.

Regards,
Bob

Steve-Matrix
Matrix Staff
Posts: 1998
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 298 times
Been thanked: 464 times

Re: Rotary switch

Post by Steve-Matrix »

Sorry, but since Flowcode v10 we only support Windows 10 and 11.

siliconchip
Posts: 47
Joined: Wed Dec 16, 2020 10:38 am
Has thanked: 18 times
Been thanked: 1 time

Re: Rotary switch

Post by siliconchip »

Hi
Any info on setting this up please

Cheers bob

Steve-Matrix
Matrix Staff
Posts: 1998
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 298 times
Been thanked: 464 times

Re: Rotary switch

Post by Steve-Matrix »

Hi Bob. Not sure exactly what you need.

A new component and instructions on getting it to show in Flowcode are in a previous post in this topic.

Once you have that new component, you should see a new property called "Type" which is "Encoded" (i.e. the way that component worked previously, outputting a BCD/HEX encoding on up to 4 pins) or "Conventional" (i.e. how a non-encoded rotary switch works, with each position outputting to a specific pin).

siliconchip
Posts: 47
Joined: Wed Dec 16, 2020 10:38 am
Has thanked: 18 times
Been thanked: 1 time

Re: Rotary switch

Post by siliconchip »

Hi steve
Thanks for the reply the only type i have in the propertys box is under component and the type says rotary switch and cannot be changed below this i have num positions and common type and below that pins ?

Cheers bob

medelec35
Valued Contributor
Posts: 2341
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 731 times
Been thanked: 789 times

Flowcode v11 Re: Rotary switch

Post by medelec35 »

Hi Bob.
Best advice is to follow what Steve said & download the modified component and place it in a directory for any custom components.
For example I save custom components within a directory I added called D:\Flowcode Non standard Components.
I then add the directory within File > Global Settings..> Locations tab > Look for components in ..
After adding the folder location (note if you add a semicolon at the end of the directory path, sub folder will also be included), reload your project: File > Reload
You can tell if Flowcode is using the modified component by going to Component Libraries, right click on the component and select Details.
You can then see the folder the component is located:
Rotary switch modifed1.png
Rotary switch modifed1.png (62.31 KiB) Viewed 136 times
Look at Filename.
If you have downloaded the modified component and the path is correct then the properties for the convention switch settings will look like this:
Rotary switch modifed2.png
Rotary switch modifed2.png (127.15 KiB) Viewed 136 times
Martin

medelec35
Valued Contributor
Posts: 2341
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 731 times
Been thanked: 789 times

Re: Rotary switch

Post by medelec35 »

There is one other thing I should mention.
Flowcode automatically uses the latest component version.
Therefore if you have the same component in two different locations, the the location with the latest version will be used.
I mentioned this because when the official switch is updated and you update the component library, the location when selecting Details will change from your custom location to the official

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV11\Components
location
Martin

Steve-Matrix
Matrix Staff
Posts: 1998
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 298 times
Been thanked: 464 times

Re: Rotary switch

Post by Steve-Matrix »

Thanks, Martin.

For anyone using their own components folder, more info about this is on the following wiki page:
https://www.flowcode.co.uk/wiki/index.p ... irectories

siliconchip
Posts: 47
Joined: Wed Dec 16, 2020 10:38 am
Has thanked: 18 times
Been thanked: 1 time

Re: Rotary switch

Post by siliconchip »

Hi all
Ive downloaded again and now ive got it .. this is exactly what i was after brilliant thanks all at matrix and those who helped

Cheers bob

Steve-Matrix
Matrix Staff
Posts: 1998
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 298 times
Been thanked: 464 times

Re: Rotary switch

Post by Steve-Matrix »

Excellent. We'll get that officially released soon, but you should use this version until then.

Post Reply