Sets the signal of event controller.
Ret = AioSetEcuSignal ( Id , Destination , Source )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the device ID retrieved from AioInit.
Destination
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the destination signal from the following range.
Destination signal |
Marco |
Value (Decimal number) |
Analog input sampling clock period |
AIOECU_DEST_AI_CLK |
4 |
Analog input conversion start signal |
AIOECU_DEST_AI_START |
0 |
Analog input conversion stop signal |
AIOECU_DEST_AI_STOP |
2 |
Analog output generating clock period |
AIOECU_DEST_AO_CLK |
36 |
Analog output conversion start signal |
AIOECU_DEST_AO_START |
32 |
Analog output conversion stop signal |
AIOECU_DEST_AO_STOP |
34 |
Counter0 UP clock signal |
AIOECU_DEST_CNT0_UPCLK |
134 |
Counter1 UP clock signal |
AIOECU_DEST_CNT1_UPCLK |
135 |
Counter0, Timer0 operation start signal |
AIOECU_DEST_CNT0_START |
128 |
Counter1, Timer1 operation start signal |
AIOECU_DEST_CNT1_START |
129 |
Counter0, Timer0 operation stop signal |
AIOECU_DEST_CNT0_STOP |
130 |
Counter1, Timer1 operation stop signal |
AIOECU_DEST_CNT1_STOP |
131 |
Synchronous bus master signal1 |
AIOECU_DEST_MASTER1 |
104 |
Synchronous bus master signal2 |
AIOECU_DEST_MASTER2 |
105 |
Synchronous bus master signal3 |
AIOECU_DEST_MASTER3 |
106 |
Source
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the source signal from the following values.
Source signal |
Macro |
Value (Decimal number) |
Analog input internal clock signal |
AIOECU_SRC_AI_CLK |
4 |
Analog input external clock signal |
AIOECU_SRC_AI_EXTCLK |
146 |
Analog input external trigger start signal |
AIOECU_SRC_AI_TRGSTART |
144 |
Analog input level trigger start signal |
AIOECU_SRC_AI_LVSTART |
28 |
Analog input conversion times stop signal (Not delay) |
AIOECU_SRC_AI_STOP |
17 |
Analog input conversion times stop signal (Delay) |
AIOECU_SRC_AI_STOP_DELAY |
18 |
Analog input level trigger stop signal |
AIOECU_SRC_AI_LVSTOP |
29 |
Analog input external trigger stop signal |
AIOECU_SRC_AI_TRGSTOP |
145 |
Analog output internal clock signal |
AIOECU_SRC_AO_CLK |
66 |
Analog output external clock signal |
AIOECU_SRC_AO_EXTCLK |
149 |
Analog output external trigger start signal |
AIOECU_SRC_AO_TRGSTART |
147 |
Analog output specified times output stop signal (Use FIFO) |
AIOECU_SRC_AO_STOP_FIFO |
352 |
Analog output specified times output stop signal (Use RING) |
AIOECU_SRC_AO_STOP_RING |
80 |
Analog output external trigger stop signal |
AIOECU_SRC_AO_TRGSTOP |
148 |
Counter0 UP clock signal |
AIOECU_SRC_CNT0_UPCLK |
150 |
Counter1 UP clock signal |
AIOECU_SRC_CNT1_UPCLK |
152 |
Counter0 comparison count match |
AIOECU_SRC_CNT0_CMP |
288 |
Counter1 comparison count match |
AIOECU_SRC_CNT1_CMP |
289 |
Synchronous bus slave signal1 |
AIOECU_SRC_SLAVE1 |
136 |
Synchronous bus slave signal2 |
AIOECU_SRC_SLAVE2 |
137 |
Synchronous bus slave signal3 |
AIOECU_SRC_SLAVE3 |
138 |
Ai, Ao, Cnt, Tm software start signal |
AIOECU_SRC_START |
384 |
Ai, Ao, Cnt, Tm software stop signal |
AIOECU_SRC_STOP |
385 |
Ret [ VB.NET : Integer ] [ C, C++ : long ] [ C# : int ] [ Python : ctypes.c_long ]
Return values |
Content |
0 |
Normality completion |
7 |
Execute AioResetDevice function because the device has recovered from standby mode |
10001 |
Invalid
Id was specified |
10002 |
AIO
driver can't be called |
17000 |
The value of Destination is outside the designated range of the function |
17001 |
The value of Source is outside the designated range of the function |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
20003 |
Can
not use because another process is using the device |
27000 |
The value of Destination is outside the designated range of the device being used |
27001 |
The value of Source is outside the designated range of the device being used |
27002 |
An invalid connection |
Destination signal |
Source signal |
Analog input sampling clock period |
Analog input internal clock signal |
Analog input conversion start signal |
Not connect |
Analog input conversion stop signal |
Analog input conversion times stop signal (No delay) |
Analog output generating clock period |
Analog output internal clock signal |
Analog output conversion start signal |
Not connect |
Analog output conversion stop signal |
Analog output specified times output stop signal (Use FIFO) |
Counter0 UP clock signal |
Counter0 UP clock signal |
Counter1 UP clock signal |
Counter1 UP clock signal |
Counter0, Timer0 operation start signal |
Not connect |
Counter1, Timer1 operation start signal |
Not connect |
Counter0, Timer0 operation stop signal |
Not connect |
Counter1, Timer1 operation stop signal |
Not connect |
Synchronous bus master signal1 |
Not connect |
Synchronous bus master signal2 |
Not connect |
Synchronous bus master signal3 |
Not connect |
Multifunctional operation can be performed
by switching the control signal among Ai, Ao, Cnt.
The control relative to synchronous bus is set by using this function too.
If the device is in operation, the function cannot be performed.
Some combinations can be used while some combinations cannot be used.
[F-series]
*Since AIO-163202FX-USB has no corresponding function on hardware, [Synchronous
bus slave signal] and [Synchronous bus master signal] can not be set.
Source_Destination |
Analog
input |
Analog
input |
Analog
input |
Analog
output |
Analog
output |
Analog
output |
Counter0 UP clock signal |
Counter1 UP clock signal |
Counter0, Timer0 operation start signal |
Counter1, Timer1 operation start signal |
Counter0, Timer0 operation stop signal |
Counter1, Timer1 operation stop signal |
Synchronous bus master signal1 |
Synchronous bus master signal2 |
Synchronous bus master signal3 |
Analog
input |
- |
|
|
Yes |
|
|
|
|
|
|
|
|
Yes |
Yes |
Yes |
Analog
input |
- |
|
|
Yes |
|
|
|
|
|
|
|
|
|
|
|
Analog
input |
|
- |
|
|
Yes |
Yes |
|
|
No |
No |
No |
No |
|
|
|
Analog
input |
|
- |
|
|
Yes |
Yes |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Analog
input |
|
|
- |
|
Yes |
Yes |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Analog
input |
|
|
- |
|
Yes |
Yes |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Analog
input |
|
|
- |
|
Yes |
Yes |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Analog
input |
|
|
- |
|
Yes |
Yes |
|
|
No |
No |
No |
No |
|
|
|
Analog
output |
Yes |
|
|
- |
|
|
|
|
|
|
|
|
Yes |
Yes |
Yes |
Analog
output |
Yes |
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
Analog
output |
|
Yes |
Yes |
|
- |
|
|
|
No |
No |
No |
No |
|
|
|
Analog
output specified times |
|
Yes |
Yes |
|
|
- |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Analog
output specified times |
|
Yes |
Yes |
|
|
- |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Analog
output |
|
Yes |
Yes |
|
|
- |
|
|
No |
No |
No |
No |
|
|
|
Counter0 |
|
|
|
|
|
|
- |
|
|
|
|
|
Yes |
Yes |
Yes |
Counter1 |
|
|
|
|
|
|
|
- |
|
|
|
|
Yes |
Yes |
Yes |
Counter0 |
|
Yes |
Yes |
|
Yes |
Yes |
|
|
|
|
|
|
Yes |
Yes |
Yes |
Counter1 |
|
Yes |
Yes |
|
Yes |
Yes |
|
|
|
|
|
|
Yes |
Yes |
Yes |
Synchronous |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
|
|
|
|
|
|
|
|
|
Synchronous |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
|
|
|
|
|
|
|
|
|
Synchronous |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
|
|
|
|
|
|
|
|
|
Ai,
Ao, Cnt, Tm |
|
- |
- |
|
- |
- |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Ai,
Ao, Cnt, Tm |
|
- |
- |
|
- |
- |
|
|
No |
No |
No |
No |
Yes |
Yes |
Yes |
Yes: The connectible combinations (Connectible)
No: The combinations unsupported now (Not connectible)
-: When the conversion start condition etc. is selected other than Event
Controller Output, driver will select the optimal combination and make
a connection automatically (Not connectible by using API)
Others: The combinations that cannot be connected (Not connectible)
[Z-series]
The event controller connection settings for synchronous operation of Z-series devices such as AI-1204Z-PCI which can be set is less than the above F-series.
Source_Destination |
Analog
input |
Analog
input |
Analog
input |
Synchronous bus master signal1 |
Synchronous bus master signal2 |
Synchronous bus master signal3 |
Analog
input |
- |
|
|
Yes |
Yes |
Yes |
Analog
input |
- |
|
|
|
|
|
Analog
input |
|
- |
|
|
|
|
Analog
input |
|
- |
|
Yes |
Yes |
Yes |
Analog
input |
|
|
- |
Yes |
Yes |
Yes |
Analog
input |
|
|
- |
Yes |
Yes |
Yes |
Analog
input |
|
|
- |
|
|
|
Synchronous |
Yes |
Yes |
Yes |
|
|
|
Synchronous |
Yes |
Yes |
Yes |
|
|
|
Synchronous |
Yes |
Yes |
Yes |
|
|
|
Ai,
Ao, Cnt, Tm |
|
|
|
Yes |
Yes |
Yes |
Ai,
Ao, Cnt, Tm |
|
|
|
Yes |
Yes |
Yes |
Yes: The connectible combinations (Connectible)
-: When the conversion start condition etc. is selected other than Event
Controller Output, driver will select the optimal combination and make
a connection automatically (Not connectible by using API)
Others: The combinations that cannot be connected (Not connectible)
The analog input internal clock signal is connected with the analog output generating clock period.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |