Variable apeture valves operate using a solenoid to pull the needle away from the seat. They need feedback, mostly from having pressure transducers in the compressor high side by the accumulator after the refrigerant is compressed and cooled, pressure by the suction of the compressor, and temperature of the condenser coil, evaporator and also interior and exterior temperature. This then is used to control the flow so the maximum possible drop is possible with the flow from the compressor, but also keeping the evaporator coil just above freezing, so it does not ice up. If it detects the coil is freezing up, it will throttle back the compressor, and open the valve to a higher flow rate, so the hot refrigerant can defrost the coil.
Of course with the tiny amount of R1234YF refrigerant in the system, it will set an error code, if only 2% of the refrigerant is lost through the compressor seals. That is why you need a computer controlled charging system to get the system charged, it has to communicate with the vehicle, to use all those sensors and verify them over a wide range.