L_DicomChannelSetOffset

#include "Ltdic.h"

L_LTDIC_API L_BOOL L_DicomChannelSetOffset(hDICOMWaveFormChannel, bInclude, dChannelOffset)

HDICOMWAVEFORMCHANNEL hDICOMWaveFormChannel;

/* a DICOM waveform channel handle*/

L_BOOL bInclude;

/* dataset insertion/deletion flag*/

L_DOUBLE dChannelOffset;

/* new channel offset*/

Sets the channel offset.

Parameter

Description

hDICOMWaveFormChannel

A DICOM waveform channel handle

bInclude

Boolean flag that specifies whether the function should insert the "Channel Offset" (003A,0218) element or remove it from the dataset.

 

Value

Meaning

 

TRUE

Insert the "Channel Offset" (003A,0218) element (that corresponds to this channel) into the dataset and then set its value.

 

FALSE

Delete the "Channel Offset" (003A,0218) element (that corresponds to this channel) from the dataset.

dChannelOffset

New channel offset.

Returns

TRUE

The channel offset was updated successfully.

FALSE

An error occurred.

Comments

This function sets the value of the "Channel Offset" (003A,0218) element that corresponds to this channel. Set bInclude to TRUE to force the function to insert the element if it doesnt already exist in the dataset.

This function can also be used to delete the "Channel Offset" (003A,0218) element that corresponds to this channel by setting bInclude to FALSE. In this case the dChannelOffset parameter is ignored.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DicomChannelGetOffset

Topics:

Working with DICOM Waveforms

 

 

Example

For an example, refer to L_DicomChannelSetSamples8.