Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generate a clock from 2 square waveform by trig on 5422

8 views
Skip to first unread message

i_am

unread,
Jul 9, 2008, 11:40:14 AM7/9/08
to
hi,
 
I want to generate a square waveform by sweeping from 2 square waveform ( different frequency ).
i tried the FGEN sweep exemple but the problem is the output turn off in the sweep time.
 
i use labview 8.5 and the PXI-5422.
 
my program : output = wave1 until trig
                       if trig
                              output = wave2 ( for finite cycle ) and then return to wave1
 
 
thanks.

Maxime MULLER

unread,
Jul 11, 2008, 8:40:13 AM7/11/08
to
Hello,
 
Could you be more precise ? I don't understand what you want to do. Why don't you use a counter to do that ?
 
Regards,

i_am

unread,
Jul 11, 2008, 10:40:16 AM7/11/08
to
hi,
thanks for the reply !
i hope that this will be clear :
wave1 : ____/'''''''''''''''''\___________/''''''''''''''''''\____----------- for exmple 1Mhz
wave2 : ____/""\__/""\__/""\__/""\__/""\__/""\__/""\__------------ for exemple 10Mhz
 
trig :      ___________________________________________________________/""""""""""""\__________________________________________
output : ____/'''''''''''''''''\___________/'''''''''''''''''\___________/'''''''''''''''''\___________/""\__/""\__/""\__/""\__/""\__/'''''''''''''''''\___________/'''''''''''''''''\____
so, the output generate always the wave1 until there is a trig, and when a trig ->  the output generate wave2 for a number of pulse that i enter manualy ( here it's 5 pulse ) and after the 5 pulse, the output sweep again to the wave 1 until that i stop the process, and of course all the transitions are on the fly not like the exemple of standart function.
i tried to do this with a script, but the problem is that i can't choice the frequency of wave1 and wave2 because it's arbitrary !!!
i think that if the 5422 support the frequency list Mode it will be OK, but ...
is there any solution ?!
 
thanks again.

Maxime MULLER

unread,
Jul 23, 2008, 5:40:18 AM7/23/08
to
Bonjour,
Ci-joint un programme qui devrait vous aider dans votre démarche. Avez vous pensé à regarder les exemples fournient avec LabVIEW ?
Cordialement,Message Edité par Maxime MULLER le 07-23-2008 04:37 AM


exemple.vi:
http://forums.ni.com/attachments/ni/270/5645/1/exemple.vi

i_am

unread,
Jul 23, 2008, 7:40:11 AM7/23/08
to
thanks for the reply,
 
i see all the exemple of fgen in labview, and finaly i use the Fgen Switch between Waveforms.vi exemple with some modification in the script and ofcourse i remove the part of software trigger.
 
now i can generate my sequence with external trig.
 
the script:
 
script SwitchWaveformswait until scriptTrigger1       repeat until scriptTrigger0         generate Waveform1      end repeat
repeat N  // ( N times )
generate Waveform2end repeat       repeat until scriptTrigger2    generate Waveform1      end repeat end script

i_am

unread,
Jul 23, 2008, 7:40:11 AM7/23/08
to
thanks for the reply,
 
i see all the exemple of fgen in labview, and finaly i use the Fgen Switch between Waveforms.vi exemple with some modification in the script and ofcourse i remove the part of software trigger.
 
now i can generate my sequence with external trig.
 
the script:
 
script SwitchWaveformswait until scriptTrigger1         repeat until scriptTrigger0         generate Waveform1      end repeat

i_am

unread,
Jul 23, 2008, 7:40:11 AM7/23/08
to
thanks for the reply,
 
i see all the exemple of fgen in labview, and finaly i use the Fgen Switch between Waveforms.vi exemple with some modification in the script and ofcourse i remove the part of software trigger.
 
now i can generate my sequence with external trig.
 
the script:
 
script SwitchWaveformswait until scriptTrigger1        repeat until scriptTrigger0         generate Waveform1      end repeat

i_am

unread,
Jul 23, 2008, 7:40:12 AM7/23/08
to
thanks for the reply,
 
i see all the exemple of fgen in labview, and finaly i use the Fgen Switch between Waveforms.vi exemple with some modification in the script and ofcourse i remove the part of software trigger.
 
now i can generate my sequence with external trig.
 
the script:
 
script SwitchWaveformswait until scriptTrigger1          repeat until scriptTrigger0         generate Waveform1      end repeat

i_am

unread,
Jul 23, 2008, 7:40:10 AM7/23/08
to
thanks for the reply,
 
i see all the exemple of fgen in labview, and finaly i use the Fgen Switch between Waveforms.vi exemple with some modification in the script and ofcourse i remove the part of software trigger.
 
now i can generate my sequence with external trig.
 
the script:
 
script SwitchWaveformswait until scriptTrigger1      repeat until scriptTrigger0         generate Waveform1      end repeat

i_am

unread,
Jul 23, 2008, 7:40:12 AM7/23/08
to
thanks for the reply,
 
i see all the exemple of fgen in labview, and finaly i use the Fgen Switch between Waveforms.vi exemple with some modification in the script and ofcourse i remove the part of software trigger.
 
now i can generate my sequence with external trig.
 
the script:
 
script SwitchWaveformswait until scriptTrigger1           repeat until scriptTrigger0         generate Waveform1      end repeat

i_am

unread,
Jul 23, 2008, 7:40:13 AM7/23/08
to
sorry for all this reply !!!!!
i dont know how it happen.
 
thanks again.

i_am

unread,
Jul 23, 2008, 7:40:12 AM7/23/08
to
thanks for the reply,
 
i see all the exemple of fgen in labview, and finaly i use the Fgen Switch between Waveforms.vi exemple with some modification in the script and ofcourse i remove the part of software trigger.
 
now i can generate my sequence with external trig.
 
the script:
 
script SwitchWaveformswait until scriptTrigger1            repeat until scriptTrigger0         generate Waveform1      end repeat

Maxime MULLER

unread,
Jul 23, 2008, 7:40:13 AM7/23/08
to
Hi,
 
No problem, forum  bug.
 
Regards,
0 new messages