Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

generating double pulse signal

Hello everybody,
i'm trying to generate a signal with double pulses in which should be able to change the time interval of each pulse t1 and t3 (switching on )
ans also to change the time interval of the switching off interval t2 ( which is between t1 and t3 )
note:  all these time intervals are independet from each others and also not periodic and these three time intervals will be in µs
from 1µs to 10 µs
i  have  Labview  version 7.1 and the device  which i use is NI PXI-6259 M series
could you help  me  with your advice , how can i gerenate the signal ?
thank you very much
Satriany
0 Kudos
Message 1 of 4
(4,105 Views)
Unfortunately you can not achieve this with the counter. What you could do is use a digital output instead. As the M-Series is able to generate digtial patterns at a specific rate (called correlated DIO, see this example: http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=DD535427AB1D5A53E034080020E74861&p_...) you could generate a clock with your counter (for example a 1Mhz Clock would result in 1 MicroS resolution), use the counter output to clock your correlated DO. No you can define the pulses by your digital pattern.
Example: t1=4, t2=3, t3=8 would result in the following pattern: 111100011111111
 
Hope this helps!
Message 2 of 4
(4,092 Views)
Hello,
thank you very much for your advise now i'm about to finish the function  i can see the signal and the changes of the time interval
 on the wavediagram of the frontpanel but the problem that i don't get the expected signal at the digital output line17 from the DAQmx
actually there is no output at all from line17  however there is no error message in the code when i run the simulation
i chose another output as an alternative but  still there is no output signal too  however i checked these outputs with another code
 to test them if they work or not and the answer was positive also with the testpanel  they  react with the changes which means
 that configurations of the DAQmx is right
in my code i changed the rate many times to be able to see signal on the oscilliscope not only in µs but also in different dimentions of time
  but still there is no output
all of this mean only i have something in the code which i don't know is the reason of  not getting the output signal
i send my code as an attachement may be you can  try it  and  tell me  where is  the reason 

i have labview version 7.1
my device is NI-PXI 6259, it has 32 bit port
 
thank you very much
0 Kudos
Message 3 of 4
(4,059 Views)

Hi Satriany,

I do have the exact same problem as you had (double pulse, with defined duty cycle a1 and a2; on_times ~ couple us).

I do not have an M- Series Card; only the pci 6601; do you think your version of the solution

could work here as well?

 

Thanks,

 

Andreas

 

0 Kudos
Message 4 of 4
(3,951 Views)