cancel
Showing results for 
Search instead for 
Did you mean: 

How to turn the display off?

Creator
Creator

Hello,

 

How can I turn the display off and keep the analysis happening at the same time?

I am using C.

 

Thank you,

 

Dora

6 REPLIES

Re: How to turn the display off?

Phenom
Phenom
UF_DISP_set_display(UF_DISP_SUPPRESS_DISPLAY);
// do some work
UF_DISP_set_display(UF_DISP_UNSUPPRESS_DISPLAY);
UF_DISP_refresh();
// or call
UF_DISP_regenerate_display();
Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: How to turn the display off?

Creator
Creator

hi to all, i try to use this:

UF_DISP_set_display(UF_DISP_SUPPRESS_DISPLAY);

it works fine in my first automation but don't work in the second automation. I could not understand why.... 

in second automation the function return 110500 while in the first 0. This indicates that for my second automation function fails.

help me please

Re: How to turn the display off?

Genius
Genius

With an extra zero (1105000) this is the UF_err_program_not_initialized error. Are you sure your program is properly initialized?

 

Regards,

Jan

Jan Böttcher

Re: How to turn the display off?

Creator
Creator

The error is 1105000.

I initialize application whit UF_initialize() method in constructor and UF_terminate() in destructor. Is this the correct way? 

Re: How to turn the display off?

Creator
Creator

I also tried to see status with UF_is_initialized() and return true.

i ask also the status of display with UF_DISP_ask_display(&status) and before the UF_DISP_set_display(UF_DISP_SUPPRESS_DISPLAY) is 1, while after is 0.

it seems to work fine but i continue to see ghapics modification and 'Work in progress...' window

Re: How to turn the display off?

Genius
Genius

So your second program does not end up with an error any more?

 

As for the UF_DISP_set_display funktion: I don't know your program but according to the documentation and my experiences this function does not surpress all graphic output.

 

Regards,

Jan

 

Jan Böttcher