08-17-2011 03:10 AM
08-17-2011 05:31 AM
08-17-2011 05:39 AM
Hi Mitsurugi,
I'm currently running your code and unfortunately I haven't experienced the same issue you saw yet.
However I did notice on your block diagram that you lack timing in your while loop. I'd recommend that you insert a "Wait until next ms Multiple" function from the Functions-> Programming-> Timing palette with a constant such as 10 into your loop. This provides time for the processor to rest. If the disappearance is actually caused by your graphics card being 'maxed out' then this timing may also help to solve this issue.
Hope this helps and I will keep your code running to see if I can also observe the problem,
08-17-2011 07:12 AM
@Mitsurugi wrote:
No, I'm afraid the Strictly setting didn't make a difference either. 😞
Hmmm. It didn't disappear on me after setting it to strictly typed. Perhaps I didn't wait long enough. Tori.M has a good suggestion. I didn't notice your lack of timing in the while loop. As a matter of efficiency and good practice, regardless of your application, you should include a wait in your while loop, unless it's already built in, so as not to over-tax the processor.
08-17-2011 11:47 AM
Hi again MoReese & Mitsurugi,
After replicating your error and seeing that it still occurred with timing in the loop, I remade your code including both the VI and buttons.
These don't seem to disappear (correct me if you observe the same problem) which suggests that either the buttons or the VI was corrupted in your code.
Make a new project and add them in and have a look
Hope this fixes everything!!
08-18-2011 03:10 AM
Thanks for that, I'll check it out.
08-18-2011 03:40 AM
08-18-2011 03:49 AM
Hi Mitsurugi,
In the zip file, the controls I remade are also included. You can customise most of the controls, but I just used a Boolean Stop with the mechanical action "latch when pressed".
Couple of other things I did, but are unlikely to have caused the issue:
I converted your images to .png format - although GIFs are usable, PNGs are generally preferable. As suggested by MoReese, I also used Type Def controls.
Fingers crossed the code being remade has managed to tackle the problem!
08-19-2011 10:46 AM
Hi Mitsurugi,
Just wondering if the new VI and custom controls fixed the "disappearing" issue that you were having?
Let me know!
08-22-2011 02:59 AM - edited 08-22-2011 03:03 AM
Hullo Tori.
The answer to your question is Yes AND No.
The buttons you sent over worked great....but when I tried to replicate what you did (mechanical action, file type, and all that) I still got the same blank buttons. In a last ditch effort I tried making a copy of your buttons, and modifying those, but that only resulted in the same outcome.
I've no idea what I'm doing different to you guys, and I don't know what else to try.
If only they'd let us drink in the office, y'know? 😞
Anyway, some more questions:
- regarding the images, did you do anything other than change the file extension from .gif to .png?
- when you allocated the .png to a given button's picture items, what method do you use: "import from file" or "import from clipboard"?
- any major difference or advantages between the two methods?
Thanks.
Mitsurugi.