![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
Szalata, Zenon M. wrote: I have successfully put together a soft IOC which consists of a number "Soft Channel" type of records. These are mostly longin, one ot two bo and mbbo, and one genSub. In the edm companion for this IOC, I have a number of text controls to put new values into all the records with the exception of the genSub record. There is a Message Button in the edm program which is used to trigger processing of the genSub record, When genSub is processed it takes the values from all the other records, performs some calculations, creates a string of numeric values and prints the results. All works fine. You can't use device support with the genSub record. The record simply lacks the code required to use device support. You'll have to get the genSub record to write to a record that can have device support, such as an ao record. Once I overcome the previous difficulty, I think I will have another problem to solve. This is what I am worried about. 1. When I send a certain combination of numberic values to KS3988, it should be ready to return some data. That is, sending it some sequence of numbers prepares the crate controller to return some numeric results. 2. I am thinking to have a forward link in the genSub record to a waveform record which would be setup to read from the GPIB controller. Is it guaranteed that the waveform record is processed after the genSub record has sent the command bytes to the controller? If not, what should I do to assure properly timed execution of the two records? Yes, If you have an output record that writes to a device and forward links to an input record, the input record will not process until the output record has sent its data. In view of previous comment, of course, you would in actual practice have the genSub record write (using a PP link) to an ao record (for example), and have the ao record forward link to the waveform record. Many thanks in advance, Zen -- Tim Mooney ([email protected]) (630)252-5417 Beamline Controls & Data Acquisition Group Advanced Photon Source, Argonne National Lab.
| ||||||||||||||||
ANJ, 10 Nov 2011 |
![]() · Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |