04-08-2014 04:36 PM
Hello, all,
I need to design a Labview problem as a Multi-channel Sequential Controlling Pulse Generator and output through DAQ card (NI6259). The required digital pulses are showns in the attachment. Time scale values are shown on the top as an example. CLK's duty cycle is 0.5. x1 and x2's value need to be programable.
Could anyone give example codes? Or, give me any idea to program these pulses?
04-09-2014 10:20 AM
Hello, haitaoli7036
LabVIEW has many built in examples that could help you get started.
On the toolbar go to Help»Find Examples»Hardware Input and Output»DAQmx. There are various examples in these folders that can get you started on timing and synchronization.
04-09-2014 10:26 AM
Thanks for reply. I read all the built-in examples. All these example are about to generate 50% duty cycles. My case is different. Duty cycles are not 50%. Please refer to the attached figure for required pulses' information.
04-09-2014 04:46 PM
The examples show you how to configure the DAQ hardware for outputting digital waveforms.
From there, it's a matter of buliding the correct output array to write to the output task. Granted this is the tricky part, but I wouldn't expect anybody to write this code for you. Try breaking down the waveform into its periodic sections and use loops to generate the proper bits.
Best Regards,
04-09-2014 05:20 PM
I am look for an example code for the tricky part.