02-17-2011 06:29 AM
Hi,
I want to write a really simple DAQmx signal generation programm, infact the only thing i have to do is trigger another device. I have the NI USB-6211 and want to use the AO0 and the AO1 to generate trigger signals... the signals has to be at least 10ms long and i thought of using an array to time the whole thing... a for loop with a wait vi inside and then an array with the nr of ms...
But when i only setup a simple DAQmx vi i get all errors 200609 and 200524...? Saying that my buffer is too small?
When i use the exaple VI: Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi I get a perfect working program, but that simulates waveforms... whinch i can't use...
BTW i am ver new to DAQmx... i used to work with labview 7.0 now i have 8.5
Anyone?
Thijs
02-23-2011 07:02 AM
Dear Thijs,
please consider the attached example,
- first create an amount of data (in the example 1 second), a percentage of the data is your pulse; you can decide this on the duty cycle, so your pulse time in ms is 100/1000 (100% is 1000 ms)
- when you want to generate the pulse (press generate pulse button = true); task will be started and we poll when the samples are written (please notice that this will take one second), then task will be stopped until the next time the pulse needs to be generated.
Please find the attached example, originally written in 2010, but I saved it down to 8.5.
Best regards,
02-23-2011 07:14 AM
Thanks!!