02-20-2019 04:19 AM
Hello
I tried to build a custom device of the power supply, In this, I need to control the voltage and current also I checked for the overvoltage protection state, I am able to add the initialization, Main and RT driver VI. When I added the custom device in Veristand I am not able to read output or set any input to the power supply. I am not able to find where exactly the issue and how to resolve that problem. Please find the attached LabVIEW project. Can anyone help me to resolve this issue
Thank You
03-20-2019 04:20 AM - edited 03-20-2019 04:22 AM
Hi ani94,
you should improve your code style in the first place. For instance good practice is to create a single global variable which stores property names for your Custom Device as a default values of a subsequent string controls. For example like here:
You can then use this global variable to define property name when reading/writing property values across your Custom Device. Likewise it is done on this example:
Back to your original question, there are two critical failures in your RT Driver:
1. You have typo in the "visa resource name" property name
2. Instead of providing VISA resource name from your configuration you pass empty string to the hardware initialization