RTP Series API Programming Reference  1.2.1
Memory Channels

Functions

EXPORT int PwrSnsr_SaveToMemoryChannel (SessionID Vi, const char *MemChan, const char *ChannelName)
 Saves the given channel to a memory channel. If the memory channel does not exist, a new one is created. More...
 
EXPORT int PwrSnsr_GetMemChanArchive (SessionID Vi, const char *MemChan, int ValBufferSize, char Val[])
 Returns an XML document containing settings and readings obtained using the SaveToMemoryChannel method. More...
 
EXPORT int PwrSnsr_LoadMemChanFromArchive (SessionID Vi, const char *MemChan, const char *ArchiveContent)
 Loads the named memory channel using the given archive. If the memory channel does not exist, one is created. More...
 

Detailed Description

Memory Channel functions

Function Documentation

◆ PwrSnsr_GetMemChanArchive()

EXPORT int PwrSnsr_GetMemChanArchive ( SessionID  Vi,
const char *  MemChan,
int  ValBufferSize,
char  Val[] 
)

Returns an XML document containing settings and readings obtained using the SaveToMemoryChannel method.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
MemChanThe name of the memory channel to get the archive from.
ValBufferSize
ValXML document containing settings and readings.
Returns
Success (0) or error code.

◆ PwrSnsr_LoadMemChanFromArchive()

EXPORT int PwrSnsr_LoadMemChanFromArchive ( SessionID  Vi,
const char *  MemChan,
const char *  ArchiveContent 
)

Loads the named memory channel using the given archive. If the memory channel does not exist, one is created.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
MemChanMemory channel name. Must have the form MEM1...n, where n is the number of measurement channels. In single channel configurations, this parameter should always be "MEM1".
ArchiveContentAn xml document containing settings and readings obtained using the SaveToMemoryChannel method. An archive can be obtained using the GetMemChanArchive method.
Returns
Success (0) or error code.

◆ PwrSnsr_SaveToMemoryChannel()

EXPORT int PwrSnsr_SaveToMemoryChannel ( SessionID  Vi,
const char *  MemChan,
const char *  ChannelName 
)

Saves the given channel to a memory channel. If the memory channel does not exist, a new one is created.

Parameters
ViThe SessionID handle that you obtain from the PwrSnsr_init function. The handle identifies a particular instrument session.
MemChanMemory channel name. Must have the form MEM1...n, where n is the number of measurement channels. In single channel configurations, this parameter should always be "MEM1".
ChannelNameThe channel name to copy from.
Returns
Success (0) or error code.