Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
Language: Cpp
BasedOnStyle: WebKit
PointerAlignment: Right
ColumnLimit: 80
---
Binary file modified documentation/SpecsLabProdigyTCPRemoteProtocol.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>

#include "epicsExit.h"
#include "epicsThread.h"
#include "iocsh.h"

int main(int argc,char *argv[])
int main(int argc, char *argv[])
{
if(argc>=2) {
if (argc >= 2) {
iocsh(argv[1]);
epicsThreadSleep(.2);
}
iocsh(NULL);
epicsExit(0);
return(0);
return (0);
}
70 changes: 52 additions & 18 deletions specsAnalyserApp/Db/specsAnalyser.template
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,6 @@ record(bo, "$(P)$(R)ReverseY")
field(DISA, "1")
}

record(ao, "$(P)$(R)DATA_DELAY_MAX")
{
# field(PINI, "YES")
field(DTYP, "asynFloat64")
field(OUT, "@asyn($(PORT),0)SPECS_DATA_DELAY_MAX")
field(PREC, "3")
field(VAL, "5")
# info(autosaveFields, "VAL")
}

record(ai, "$(P)$(R)DATA_DELAY_MAX_RBV")
{
field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT),0)SPECS_DATA_DELAY_MAX")
field(PREC, "3")
field(SCAN, "I/O Intr")
}

record(bo, "$(P)$(R)SAFE_STATE")
{
field(DESC, "Set safe state")
Expand Down Expand Up @@ -601,3 +583,55 @@ record(ai, "$(P)$(R)STEP_SIZE_RBV")
field(PREC, "5")
}


############## Spectrum LVS variables ##############

# Start value in logical voltage unit
record(ao, "$(P)$(R)START")
{
field(DESC, "Start value")
field(DTYP, "asynFloat64")
field(OUT, "@asyn($(PORT) 0)SPECS_START")
}

record(ai, "$(P)$(R)START_RBV")
{
field(DESC, "Start value Readback")
field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT) 0)SPECS_START")
field(SCAN, "I/O Intr")
}

# End value in logical voltage unit
record(ao, "$(P)$(R)END")
{
field(DESC, "End value")
field(DTYP, "asynFloat64")
field(OUT, "@asyn($(PORT) 0)SPECS_END")
}

record(ai, "$(P)$(R)END_RBV")
{
field(DESC, "End value Readback")
field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT) 0)SPECS_END")
field(SCAN, "I/O Intr")
}

# Scan variable (as string)
record(mbbo, "$(P)$(R)SCAN_VAR")
{
field(DESC, "Scan variable")
field(DTYP, "asynInt32")
field(OUT, "@asyn($(PORT) 0)SPECS_SCAN_VAR")
field(VAL, "0")
Comment thread
gustavosr8 marked this conversation as resolved.
}

# Scan variable (as string)
record(mbbi, "$(P)$(R)SCAN_VAR_RBV")
{
field(DESC, "Scan variable Readback")
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT) 0)SPECS_SCAN_VAR")
field(SCAN, "I/O Intr")
}
Loading