Skip to content

Export sweep traces #1047

Answered by t-b
p-espinosa asked this question in Q&A
Discussion options

You must be logged in to vote

And here is a complete example to get you started.

Function GatherData(string device, variable sweepNo)
	variable i, j, numChannels, numEntries, channelType

	WAVE/Z sweepWave = GetSweepWave(device, sweepNo)
	
	if(!WaveExists(sweepWave))
		return NaN
	endif

	WAVE configWave = GetConfigWave(sweepWave)

	// regenerate the splitted 1D waves
	// we don't want to assume that the databrowser was used
	WAVE numericalValues = GetLBNumericalValues(device)

	DFREF deviceDataDFR = GetDeviceDataPath(device)
	DFREF singleSweepDFR = GetSingleSweepFolder(deviceDataDFR, sweepNo)

	KillOrMoveToTrash(dfr = singleSweepDFR)
	DFREF singleSweepDFR = GetSingleSweepFolder(deviceDataDFR, sweepNo)

	SplitSweepInt…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by t-b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants