10-10-2006 12:14 PM
10-11-2006 01:31 PM
10-11-2006 03:14 PM
Thanks for your quick response.....I actually have a line of code like that in my program.....It doesn't work though....here is my code, maybe you can see where I am screwing up....
Waveform = NIFGEN_VAL_WFM_SINE
Amplitude = 2.5
SineFreq = 10000
(niFgen_init("FunctionGenerator", True, True, handle))
CheckError (niFgen_ConfigureDigitalEdgeStartTrigger(handle, NIFGEN_VAL_PFI_1, NIFGEN_VAL_RISING_EDGE))
CheckError (niFgen_ConfigureTriggerSource(handle, "0", NIFGEN_VAL_PFI_1))
CheckError (niFgen_ConfigureStandardWaveform(handle, "0", Waveform, Amplitude, 0, SineFreq, 0))
CheckError (niFgen_ConfigureOutputEnabled(handle, "0", True))
CheckError (niFgen_InitiateGeneration(handle))
10-11-2006 03:34 PM
Your application appears to be doing both. I would recommend that you remove the "niFgen_ConfigureTriggerSource" line and change your other line to read:
CheckError (niFgen_ConfigureDigitalEdgeStartTrigger(handle, "PFI1", NIFGEN_VAL_RISING_EDGE))
Drew Creel
NI Software Engineer
Signal Generators Group
10-12-2006 07:26 AM
10-12-2006 09:34 AM