Hello :
(1)
I am a new user of NI 5114. My project was used the card to sample the waveform data by different sample rate.
But now I have problem about changing the sample clock source frome on board to the extenal clock in using the SMB connector(100MHz).
When I append the c code in GenericFetchForever.c of NI example, the return value=1. Anyone can help me to fix the problem.
My append c code : checkErr(niScope_ConfigureClock(*vi,NISCOPE_VAL_CLK_IN,
NISCOPE_VAL_NO_SOURCE,
NISCOPE_VAL_NO_SOURCE,
NISCOPE_VAL_FALSE));
error=1 , the card report "Initilize failed".
What happend in this card??
(2)
Another question is how to use the parameter of divided N to change different sample rate.
When i checked the card data sheet,It said that sample rate divide by n decimation available where 1 ≤ n ≤ 65,535.
Did any function use the N decimaiton to control the sample rate?
I fond two parameter about sampel clock source and n decimation,"NISCOPE_ATTR_INPUT_CLOCK_SOURCE"," NISCOPE_ATTR_SAMP_CLK_TIMEBASE_DIV".
But i didnt know how to use it to change sample rate.
on board clock source I used minSampelrate to configure : niScope_ConfigureHorizontalTiming (*vi, minSampleRate,
minRecordLength,
refPosition, numRecords,
enforceRealtime));
But now in external CLK_IN how to configure or setup the sameple rate ? still used this function or used n decimation ?
Thanks for your help.