07-27-2023 02:01 PM
As a newcomer to TestStand, I am currently working on an automated system project that involves several NI Interface cards, such as Digital IO, DMM, Oscilloscope, etc. The system also includes external buttons for user interaction. Your primary goal is to create a user-friendly interface where the operator can initiate specific actions with the press of these buttons, simplifying the automated process.
One of the desired functionalities is to allow the user to take a current reading using the DMM card on the PXIe chassis. To accomplish this, a Python script with VISA libraries is available, which can read the current. Your task is to integrate this Python script with TestStand, so when the user presses the external button on the station, TestStand responds by executing the Python script, displaying the current reading, and logging that data for further analysis.
I want it ensure a seamless and efficient workflow that empowers the user to interact with the automated system effortlessly. My request is for guidance on how to implement this integration between TestStand and the Python script, enabling easy and reliable current readings for the user. Other with Labview too.
09-11-2023 02:50 AM
Hi,
One option is to use the TestStand User Interface.The basic code is available in different languages :
You may need to modify the basic code to suit your requirements.
One more option is the following :
Develop TestStand sequences which does a specific task,displays data and also store the result. ( the one which needs to be done on a button press).The sequence can call Python scripts using the Python adapter.
Develop a GUI in any language and use command interface options to directly execute this sequence.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9lvSAC&l=en-IN
Ravi