10-05-2018 08:05 AM
Hello to Everybody,
I have the following problem: in a TAB I visualize the results of my test sequence.
I would like to show these results automatically by rotating the TAB.
I would also like to be able to stop the rotation on a particular TAB in order to view the content
To do this I used a while loop that has two timings as seen in the attachment.
The result, however, is not satisfactory because if the time is too long the UI is not very responsive, if it is too short a time the rotation does not allow you to view the contents
Someone can suggest me a smart solution?
Thank You so much
monica
10-05-2018 08:16 AM - edited 10-05-2018 08:21 AM
It sure is possible....but I encourage you to rethink your relationship with the user.
What you are really saying is "I, the developer, know more about the desires of the user about what information the user is interested in. So the users will have to respond to my choices rather than have my code respond to them."
Stated that way, you should start the discussion with your user with a humble apology and listen.
It's a tab container...its only purpose for existing is to organize data in groups that the user can select from!
(And possibly a devious conspiracy from hair replacement companies to increase their market size among programmers)
Fair enough?
10-05-2018 11:30 AM
Hi Jeff,
Thank you for the suggestion ... I will buy a wig
I assure you that it is a week that I think about it and my approach with the user was humble, but my programming skills did not allow me to go beyond what I posted, this is the reason why I ask the community for help
Do you think that tab control is not the right way to face the problem?
Is there any other structure more suitable to do this?
Can you give me some clues on how to proceed?
thanks
10-05-2018 11:34 AM
"Magic 8 Ball Strikes Once Again, This Time Coming Out Against The Ill-Advised Usage Of A Tab Control....Again".
Nothing would be more frustrating to me than to have to wait a predetermined (fancy way of saying "I can't control it") amount of time to look at a dataset. Why not let the user decide when and if they want to change to a different tab? K.I.S.S. method. ("Keep It Simple Stupid")....no offense to the OP.
10-05-2018 01:01 PM
@scmm wrote:
Hi Jeff,
Thank you for the suggestion ... I will buy a wig
I assure you that it is a week that I think about it and my approach with the user was humble, but my programming skills did not allow me to go beyond what I posted, this is the reason why I ask the community for help
Do you think that tab control is not the right way to face the problem?
Is there any other structure more suitable to do this?
Can you give me some clues on how to proceed?
thanks
The tab control may be a suitable option....if you let the user use it!
10-08-2018 05:31 AM
Hi guys,
I share with the community the attached implementation that suggested me a C developer: my dear friend Alessio.
Thanks Alessio, this solve my problem
"ciao"
monica
10-08-2018 08:39 AM
@scmm wrote:
Hi guys,
I share with the community the attached implementation that suggested me a C developer: my dear friend Alessio.
Thanks Alessio, this solve my problem
"ciao"
monica
Remember to keep a large supply of replacement mice and tranquilisers handy for your users.
A large portion of that code is just silly. How many times do you need to discover the size of an array constant? once for execution or every second? What is that constant doing there anyway except causing maint headaches? Why not use array size of the Tab.Pages property to figure out how many pages the tab container contains? Or would that just blow some C+ programming weenies mind?
A quotient and remainder would sure help on that top shift register. An event structure would even allow you to respond to the user inputs quickly (Hint: you could also create a control that would adjust the timeout value and let the user select the speed of updates! -1 is manual control use that as the default!)
10-08-2018 10:22 AM - edited 10-08-2018 10:23 AM
Now, Just because I was kind enough to shred you code. It should be on me to show you at least how to do this wrong thing right.
At least this version requires the user to start the process and has some decent flow.
Your User will break a lot fewer mice by banging them up and down on the desk when the UI actually responds to clicks.
When you add back in all the controls on the tab pages you'll thank me for using the defer front panel updates.
10-08-2018 10:33 AM
Jeff,
You attached the same as the OP's latest VI. Not your improved version.
10-08-2018 10:50 AM - edited 10-08-2018 10:55 AM
Brb... I probably forgot to save....
Nope: I did a save as>> unopened copy on disc and edited the original
Here try this:
Must be monday.