Corrected DAN Trigger PV name

This commit is contained in:
ferrog
2026-02-09 13:25:47 +00:00
parent 2991286fd7
commit 1db89f9c01
6 changed files with 142 additions and 5 deletions

View File

@@ -0,0 +1,121 @@
package schema
#Classes: {
ExtractBitGAM: {...}
CompactBitGAM: {...}
HttpService: {
Port!: uint & >1024 & <49151
WebRoot?: string
Timeout?: uint
ListenMaxConnection?: uint
AcceptTimeout?: uint
MaxNumberOfThreads?: uint
MinNumberOfThreads?: uint
}
HttpObjectBrowser: {
Root!: string
...
}
HttpDataMonitor: {
...
}
HttpObjectBrowser: {
Root!: string
}
HttpDirectoryResource: {
BaseDir: string
}
HttpMessageInterface: {
...
}
NI6528: {
...
}
ConfigurationDatabase: {
...
}
JAWFRecordGAM: {
Directory!: string
...
}
JAPreProgrammedGAM: {
Directory!: string
PreProgrammedPeriodMs!: uint32
...
}
JAConditionalSignalUpdateGAM: {
Operation!: "AND" | "OR" | "XOR" | "NOR"
InputSignals: {
[_]: {
Comparator!: "EQUALS" | "GREATER" | "LESSER"
Value!: number
Type!: string
...
}
}
OutputSignals: {
[_]: {
DefaultValue!: uint32
Value!: uint32
Type!: string
...
}
}
...
}
JASourceChoiceGAM: {
...
}
JAMessageGAM: {
Operation!: "AND" | "OR"
InputSignals: {
[_]: {
Value!: number
Comparator!: "EQUALS" | "GREATER" | "LESS" | "EQUALS_OR_GREATER" | "EQUALS_OR_LESS" | "NOT"
Type!: string
...
}
}
Event!: {
Class: "Message"
Destination!: string
Function!: string
}
...
}
JAModeControlGAM: {
...
}
JARTStateMachineGAM: {
ConditionTrigger: 0 | 1
mhvps_hvon: uint
aps_hvon: uint
aps_swon: uint
bps_hvon: uint
bps_swon: uint
...
}
JASDNRTStateMachineGAM: {
ConditionTrigger: 0 | 1
mhvps_hvon: uint
aps_hvon: uint
aps_swon: uint
bps_hvon: uint
bps_swon: uint
...
}
DANSource: {
...
}
JATriangleWaveGAM: {
...
}
JARampupGAM: {
...
}
NI6683H: {
BoardId: uint
...
}
}

View File

@@ -130,10 +130,10 @@
} }
+FastAnalogDAN = { +FastAnalogDAN = {
Class = "DAN::DANSource" Class = "DAN::DANSource"
NumberOfBuffers = 1000 NumberOfBuffers = 10000
CPUMask = @cpus_adc CPUMask = @cpus_adc
StackSize = 10000000 StackSize = 10000000
DanBufferMultiplier = 4 DanBufferMultiplier = 10000 //10s at 1kHz loop (1M with 1k samples)
StoreOnTrigger = 1 StoreOnTrigger = 1
ICProgName = @app_name ICProgName = @app_name
NumberOfPreTriggers = 0 NumberOfPreTriggers = 0

View File

@@ -8,7 +8,7 @@
NumberOfBuffers = 1000 NumberOfBuffers = 1000
CPUMask = @cpus_dio CPUMask = @cpus_dio
StackSize = 10000000 StackSize = 10000000
DanBufferMultiplier = 4 DanBufferMultiplier = 200 //10s at 20Hz
StoreOnTrigger = 0 StoreOnTrigger = 0
ICProgName = @app_name ICProgName = @app_name
NumberOfPreTriggers = 0 NumberOfPreTriggers = 0

View File

@@ -10,7 +10,7 @@
//# WF Generation Clock //# WF Generation Clock
#var wg_clock: uint32 = 1000 // Hz #var wg_clock: uint32 = 1000 // Hz
//# ADC Clock //# ADC Clock
#var sampling_freq: uint32 = 1000000 // Hz #var sampling_freq: uint32 = 10000 // Hz
//# App name //# App name
#var app_name: string = "JADA_RF01App" #var app_name: string = "JADA_RF01App"

View File

@@ -24,6 +24,22 @@ export DAN_INTERFACE_NAME=$(cat /etc/codac/networks | grep DAN_DEVICE | cut -d '
export DAN_ARCHIVE_MASTER=4509dn-cpu-0002-d1:9998 export DAN_ARCHIVE_MASTER=4509dn-cpu-0002-d1:9998
export DAN_ARCHIVE_SLAVE=4509dn-cpu-0002-d1:9998 export DAN_ARCHIVE_SLAVE=4509dn-cpu-0002-d1:9998
interrupts=$(cat /proc/interrupts | grep xseries | cut -d ':' -f 1 | sed 's/ //g')
for interrupt in ${interrupts}; do
tuna -q ${interrupt} -c 15 -x
done
interrupts=$(cat /proc/interrupts | grep pxi6528 | cut -d ':' -f 1 | sed 's/ //g')
for interrupt in ${interrupts}; do
tuna -q ${interrupt} -c 14 -x
done
interrupts=$(cat /proc/interrupts | grep pxi6259 | cut -d ':' -f 1 | sed 's/ //g')
for interrupt in ${interrupts}; do
tuna -q ${interrupt} -c 13 -x
done
/opt/codac/bin/danApiTool api init ${FOLDER}/DAN_ACQ.xml /opt/codac/bin/danApiTool api init ${FOLDER}/DAN_ACQ.xml
${MARTe2_DIR}/Bin/MARTeApp.ex -f ${CFG_FILE} -l RealTimeLoader -m StateMachine:Start ${MARTe2_DIR}/Bin/MARTeApp.ex -f ${CFG_FILE} -l RealTimeLoader -m StateMachine:Start
/opt/codac/bin/danApiTool api close all /opt/codac/bin/danApiTool api close all