DQMH Consortium Toolkits Feature Requests

Labels
Top Authors
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Nico_EMC

Don't change window position with RT target

Status: Declined

Hey Nicolas, thank you so much for your trust in DQMH and for taking time out of your day to share your idea with us.

 

The module template feature allows developers to solve this kind of issue without waiting for a new version of the framework. 

We suggest creating a template with the Conditional Disable Structure in the Initialize case for this specific use case. Once created, you'll be able to add modules using this template as a starting point.

 

So, we decline this request, at least for the next DQMH version.

 

Again, thank you for your input; it is most appreciated. Please keep those ideas coming!

During initializing, the window is open, center and the title is change. Those operations are very slow in RT target (4 seconds on my cRio).

Nico_EMC_2-1643964316842.png

It is much faster if I disable them with a Conditional Disable Structure.
Could it be like this in the template?

13 Comments
ChrisFarmerWIS
Active Participant

If you have embedded UI enabled, you won't want to disable that code.  So may have to change it to check if embedded UI is enabled.

Christopher Farmer

Certified LabVIEW Architect and LabVIEW Champion
DQMH Trusted Advisor
https://wiredinsoftware.com.au

joerg.hampel
Active Participant

Chris have you found a way to check during runtime if Embedded UI is enabled? 

 

We also disable the UI-specific code on RT systems without Embedded UI enabled, but had to introduce our own Conditional Disable Symbol for that which we need to set manually.




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )


ChrisFarmerWIS
Active Participant

Same way as you?

 

Anyway, just use EMBEDDED_UI == False instead of TARGET_TYPE == RT, or use AND both of them?

Christopher Farmer

Certified LabVIEW Architect and LabVIEW Champion
DQMH Trusted Advisor
https://wiredinsoftware.com.au

Nico_EMC
Member

EMBEDDED_UI is not a defined symbol. It don't works with a Conditional Disable Structure.
I didn't find anything that fit with RT target and UI enable.

joerg.hampel
Active Participant

That's what we meant to say - there is no built-in symbol for figuring out if the embedded UI is enabled. You have to create a symbol manually yourself and set it accordingly for your targets.

 

Here's an example from one of our projects:

 

cdsymbol.png




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )


ChrisFarmerWIS
Active Participant

So maybe DQMH needs to make a comment to hide that code if using RT without embedded UI?  That's probably the best one can do.

Christopher Farmer

Certified LabVIEW Architect and LabVIEW Champion
DQMH Trusted Advisor
https://wiredinsoftware.com.au

Darren
Proven Zealot

If you're using a module on RT, shouldn't you just delete that code? Do you have modules that you're running on both Windows and RT where you would actually use that conditional structure?

Taggart
Trusted Enthusiast

Sounds like it could easily be solved by a template?

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
joerg.hampel
Active Participant

We have quite a few modules that can be used both in Windows and on RT. 




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )


Nico_EMC
Member

That's right : modules can be used in Windows and on RT, so we cannot just delete the code.

So may be we can change the Conditional Disable Structure this way :

 

Nico_EMC_3-1648021200339.png Nico_EMC_1-1648021155855.png

In this case, by default, in RT target, the code is disable. And if the user activate the embedded UI, he can re-enable the code.