In the auto refresh mode the measurement value is updated automatically after each acquisition.
More...
Data Structures
Functions
- int MSXE301x__AnalogInputInitAndStartAutoRefresh (xsd__unsignedLong ulChannelMask, struct MSXE301x__unsignedLong16FixedArrayParam *pulGainArray, struct MSXE301x__unsignedLong16FixedArrayParam *pulPolarityArray, xsd__unsignedLong ulAverageMode, xsd__unsignedLong ulAverageValue, xsd__unsignedLong ulConversionTime, xsd__unsignedLong ulConversionTimeUnit, xsd__unsignedLong ulTriggerMask, xsd__unsignedLong ulTriggerMode, xsd__unsignedLong ulHardwareTriggerEdge, xsd__unsignedLong ulHardwareTriggerCount, xsd__unsignedLong ulByTriggerNbrOfSeqToAcquire, xsd__unsignedLong ulDataFormat, xsd__unsignedLong ulOption1, xsd__unsignedLong ulOption2, xsd__unsignedLong ulOption3, struct MSXE301x__Response *Response)
- Starts an autorefresh acquisition using provided configuration.
- int MSXE301x__AnalogInputGetAutoRefreshValues (void *_, struct MSXE301x__AnalogInputGetAutoRefreshValuesResponse *Response)
- Returns the values acquired in auto refresh mode.
- int MSXE301x__AnalogInputStopAndReleaseAutoRefresh (void *_, struct MSXE301x__Response *Response)
- Stops the current autorefresh acquisition.
Detailed Description
The analog acquisition is initialised and the values of each channels are stored in memory on the Ethernet E/A module MSX-E301x.
The PC reads the data asynchronously to the acquisition via the data socket or a SOAP function.
You can define a mask of all channels that should be acquired.
In the auto refresh mode you can activate the channel average value computation on the module:
- Average value calculation per channel : Each channel is acquired x times to compute an average value for the channel.
- Average value calculation per sequence : All sequences are acquired x times to compute a average value per channel.
You can start the acquisition by a hardware trigger or a synchro trigger.
The hardware trigger can react to a rising wave, falling wave or both edges.
You have the following possibility:
- Defining a number of edges before a trigger action is generated
There are two trigger modes:(for the hardware or synchro trigger)
a) One shot
b) Sequence
a) One shot:
After the software start, the module is waiting for a trigger signal to start the
acquisition. After this the trigger signal is ignored.
b) Sequence:
After the software start the module is waiting for the trigger signal and acquires x
sequences (also adjustable) and then wait again.