JSL Syntax Reference > JSL Messages > Data Historian Import Messages
Publication date: 07/15/2025

Data Historian Import Messages

AspenTech InfoPlus.21 Messages

obj<<Importer(Data Source(string), Tag Set(string), Start Time(time string), End Time(time string), Retrieval Type(<type>), Max Count(n), Include Outsiders(Boolean), Stepped(Boolean), Period(<unit>(n), Aggregate(Method("Integral"|"Value"|"Integral Incomplete"|"Value Incomplete"), Start("Start of Day"|"Start of Time"), Anchor("Begin"|"Middle"|"End"), Adjust For Daylight Savings Time(Boolean)))

Description

Creates a raw importer instance.

Example

importer = client << Importer(
	Data Source("MYDATASOURCE"),
	Tag Set("TAG1", "TAG2", "TAG3"),
	Start Time(Today() - In Days(1)),
	End Time(Today()),
	Retrieval Type("Interpolated"),
	Period(Minute(90))
);

See Also

“Common Options in the Import from AspenTech IP.21 Server Wizard” in Using JMP.

obj<<Run( Async )

Description

Imports data from an existing AspenTech IP.21 server connection.

Optional Arguments

Async

Performs the import in the background. This allows you to work on other tasks simultaneously. When using the Async argument, the Run message returns a Promise object to the imported data table. Use the Promise object to check if the import is complete.

Example

dt promise = importer << Run( Async );
// Perform other actions while waiting for the import to complete
While( !(dt promise << Has Result),
	// Perform other actions here, or just wait
	Wait( dt promise );
);
// Imported data table is now available
dt = dt promise << Result;
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).