06-16-2016 06:24 AM
How Power Supply is integrated into VeriStand Environment. The goal is to control Power Supply (On/Off/Vary Voltage) from Automation.
06-20-2016 12:07 AM
Hi Amit,
You can use the following methods to control the any device from Veristand
1. By making a custom device fro Veristand
http://www.ni.com/tutorial/9348/en/
Through this route you need to use the given template and use the driver API's for this power supply and then you need to create the Custom Device following the instructions in the tutorial above linked.
2. By converting the existing vi you made in LabVIEW to .lvmodel file.
http://zone.ni.com/reference/en-XX/help/374160B-01/vsmithelp/mit_model_from_lv/
There are some restrictions on the different controls and indicators you can use for input and output. You can understand from this document how to convert the LabVIEW vi to .lvmodel and use with Veristand.
06-20-2016 01:58 AM
08-03-2016 09:46 AM
Hi,
I have generated LabVIEW model (.lvmodel) for to be used in VeriStand from the existing developed VI. When I run LabVIEW Model dirrectly (without importing into VeriStand) I can control/ set voltage on Xantrex power supply.
Now, I imported the .lvmodel into VeriStand System Definition File.
There are two inports to the VI: 1. Voltage 2. On/Off
There is also Simulink model imported into VeriStand same System Definition File and one of the output (BatterySwitch) of Simulink model is mapped as input to LabVIEW Power Control Model (By using System Mapping in VeriStand).
When I changed BatterySwitch to 1, I dont see voltage as 13.8 on Power Supply (I have set default value to 13.8 of voltage). It goes from 0 to 1.5 and again back to 0 and this continues. Am I missing something here?
FYI, LabVIEW Model controls Xantrex Power Supply over GPIB.
09-27-2016 03:15 AM
Any solution for this?
09-27-2016 03:19 AM
Here is my requirement:
But this is not working after integration in VeriStand. When I make switch (output of Simulink model) to ON, no On Value is sent to Input of LabVIEW model which is controlling Power Supply.
09-27-2016 03:20 AM
Hi Amit,
Can you try just using the LabVIEW Model in Veristand, without using the Simulink model in between.
For Example, you can map two controls on the workspace directly to the on/off inport and also using a numeric control to send data to the voltage inport??