Example of IOC control program for DC power supply based on EPICS stream module

This example program implements network control and access to the UDP6720 series DC power supply. First, let’s introduce the hardware used in this project: 1. UDP6721 DC power supply: controlled equipment 2. moxa serial port server 5150: converts the UDP6721 DC power supply device serial port connection into a network connection 3. Orange Pie Zero3: […]

Ortec974A EPICS IOC program

For an introduction to the Ortec974A device, please see Ortec — 974A Four-Channel 100-MHz Timer/Counter_ortec974a_EPICS Technical’s Blog-CSDN Blog 1) Create a directory where the user stores the IOC program structure: root@orangepi4-lts:/usr/local/EPICS/program# mkdir ortec974A root@orangepi4-lts:/usr/local/EPICS/program# cd ortec974A/ root@orangepi4-lts:/usr/local/EPICS/program/ortec974A# ls 2) Use makeBaseApp.pl to build this IOC program architecture: root@orangepi4-lts:/usr/local/EPICS/program/ortec974A# makeBaseApp.pl -t ioc ortec974A root@orangepi4-lts:/usr/local/EPICS/program/ortec974A# makeBaseApp.pl -i […]

The MonthPicker and DatePicker of antd start at any time, and the maximum span of the selected continuous time is 1 year. disabledDate is a date that cannot be selected.

Problem description: For the date component, select the start of the month at any time, but you must select consecutive months within a year! ! ! Achieve results Solution Insert code snippet here <div style=”display: flex”> <a-month-picker v-model=”form.startValue” placeholder=”Start” @openChange=”handleStartOpenChange” /> <a-month-picker v-model=”form.endValue” :disabled-date=”disabledEndDate” placeholder=”End” :open=”endOpen” @openChange=”handleEndOpenChange” /> </div> import dayjs from “dayjs”; export default […]

EPICS base macLib library analysis and testing

File: macLib.h Brief description: Routine for text macro replacement This universal macro replacement library is used for all macro replacements in the EPICS base. Most routines return 0 (OK) on success, -1 (ERROR) on error, or a small integer corresponding to other information. macGetValue() and macExpandString() are exceptions to this, and return information about success/failure […]

Java21 is officially released with epic enhancements! Virtual threads and generational ZGC are officially here! !

The path to growth as a programmer Internet/Programmer/Technology/Data Sharing focus on This article should take approximately 7.5 minutes to read. From: Almighty Nobita Introduction: Java21 is here, a new version number, and of course there are many performance and technical enhancements On September 19, Oracle announced the official release of Java 21. This is the […]

C#’s DateTimePicker control (date control)

Table of Contents 1. Use DateTimePicker control to display time 2. Use the DateTimePicker control to display dates in a custom format 3. Return the date selected in the DateTimePicker control 1.Source code 2. Generate effects The DateTimePicker control (date control) is used to select dates and times. The DateTimePicker control can only select a […]

JDK 21 is officially released with epic enhancements! ! !

JDK 21 is finally officially GA: https://openjdk.org/projects/jdk/21/ GA is the abbreviation of “General Availability” I framed above. Literally translated into Chinese, although it means “generally available”, in the software industry, it represents the official version. If a GA version is released to the outside world, it means that this version has been fully tested, does […]

EPICS asynPortDriver readback test

This example shows the writing process of a driver that inherits from asynPortDriver, and demonstrates the use of the asynInt32, asynUInt32Digital and asynFloat64 interfaces in the record. 1. Driver source code: Readback.h: /* * Asyn driver inherited from asynPortDriver class * Test error handling with common scans and I/O Intr scans */ # include “asynPortDriver.h” […]

The bootstrap-datepicker implementation can only select a certain month of each year

1. Problem description Recently I encountered a requirement that when selecting a date control, only January of a certain year can be selected. 2. Solution Use the setStartDate() and setEndDate() functions to limit the range of the date selection box. 3. My code [Free] bootstrap-datepicker implementation can only select resources in a certain month of […]

EPICS asyn module asynDriver test example

The following is a sample program that implements the asynCommon, asynOctet and asynInt32 interfaces, and tests the usage of the core function functions of pasynManager in the asynDriver module: createAsynUser, registerPort, registerInterface, findInterface, queueRequest, etc. For a detailed introduction to asynManager, see: Introduction to asynManager #include <stddef.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> […]