ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
07-16-2020 12:07 PM
Background
You can use InstrumentStudio to host applications written in LabVIEW or C#. These applications run alongside the InstrumentStudio panels used to configure PXI instruments. Support for hosted applications is experimental in InstrumentStudio 2019.
This attached example is provided as-is. It is not a fully-vetted template. It demonstrates the core functionality currently available in InstrumentStudio 2019 for hosted LabVIEW applications.
Requirements
How it works
InstrumentStudio will look for LV DLLs in the National Instruments\InstrumentStudio 2019\Addons\LabVIEW Plugins in the location of the public documents (e.g., C:\Public\Documents). Using the template provided, you can create your own VI that can be hosted in InstrumentStudio.
The DLL must contain certain entry points. The build specification in this template is already set up to map the required VIs in the "Reserved" folder to the correct entry points (including Close.vi, GetConfiguration.vi, GetInformation.vi, and Launch.vi). Do not attempt to edit these VIs or remove them from the build spec.
You must edit Get Hostable VIs.vi to list the VI(s) you want to expose. On the block diagram, change the cluster array constant to match the name(s) of the top-level VI(s) that will be hostable in InstrumentStudio as well as what presentation types each supports. The project has one hostable VIs listed: Basic SMU.vi. Hostable VIs should be added to your build spec as well under the Always Included list. In order for your VIs to run properly, we recommend going through the checklist below.
Hostable VI examples
Hosted VI Requirements and Details
Using your plugin in InstrumentStudio
After building your DLL and copying it to the <Public Documents>\National Instruments\InstrumentStudio 2019\Addons\LabVIEW Plugins directory, launch InstrumentStudio. Enable the Hosted Applications experimental feature from File>>Preferences>>Hosted applications. On the Home tab, click the Manual Layout button. In the Edit Layout dialog, scroll down the listbox on the left until you see Other devices. There should be a LabVIEW plug-in option for each of your hostable VIs. Choose to create one of your LabVIEW plug-in in a large or small panel. Click OK to close the Edit Layout dialog and create a new document that includes your LabVIEW plugin.
Limitations
InstrumentStudio and LabVIEW use different UI frameworks, which leads to some "airspace" issues when hosting the LabVIEW front panel UI within InstrumentStudio. The incompatibility of UI frameworks is a known issue documented by Microsoft. Airspace issues include unexpected visual behavior when resizing the window, using scrollbars, and for some pop-overs like the InstrumentStudio Welcome Mat and Project Files pane. Additionally, when LabVIEW panels have command focus, InstrumentStudio won’t receive or process keyboard commands like Ctrl+S.
07-16-2020 05:02 PM
Known issue: If you're using a computer with a touch screen, when you try to create an InstrumentStudio document with the hosted application you may get a crash with DAbort 0xB78CFE1B in window.cpp. This is the result of a known LabVIEW issue that has been fixed in LabVIEW 2019 SP1.
01-25-2024 03:44 AM
Hello, thank you for sharing the excellent content. I'm curious to know if the latest version of InstrumentStudio still supports plugins in the same manner as described in your article. Currently, both my customer and I are facing challenges in replacing our existing test systems with a combination of RFmx, TestStand, and LabVIEW. The DUT (Device Under Test) we're working with requires TCP/VISA controls, and we've developed an application to address that requirement.
Our next goal is to efficiently control both RF measurements and the DUT. If we can seamlessly operate both RFmx and the DUT within the user-friendly environment of InstrumentStudio, it would be a significant achievement. This ambitious endeavor aligns with my customer's objective to further standardize the NI eco-system within his company.
03-01-2024 11:27 AM
Hello UMASO,
I am the current product manager for InstrumentStudio and can address this for you. In the simplest terms, InstrumentStudio plugins still exist and NI has produced a number of solutions built on top of the technology. You'll notice that outside of NI, information regarding plugins is pretty sparse and that has also been intentional. Access to the latest and greatest source and documentation has been funnelled into a request-type, need-to-know basis. I would love to work with you (and anyone else reading) to better understand what you're wanting to accomplish and how we can help support your goals.
Can you send me a direct message so that we can start working together on your success?
Thanks,
RyanF