0

Landscape or Potrait as selectable

Jag 3 days ago in IQANdesign updated by Matt 2 days ago 1

Hi,

We have an application which can be used on 2 different type of machines. Application logic is the same on both types of machine but the display orientation need to be in portrait mode on one type of machine and in landscape mode on another type of machine. We want to avoid having 2 versions of the same program with only difference being the display orientation in landscape or portrait mode. As you can imagine this will create software maintenance nightmare in future. Is there a way to work around this problem?

Thanks

I wonder if using the variants feature in Design 7 would do this. There doesn't appear to be a way to set a channel in the program that I can tell. It might be easier to maintain if you have two different programs and use external functions instead of standard functions for your actual program logic. At least that way, you only have to update the logic in one place. Not sure how well that would work in practice, as I haven't worked with external functions other than in a training class. Maybe Gustav can comment on any considerations and thoughts on version control and program archiving?