Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

writing simple daqmx generation signals on demand

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

0 Kudos
Message 1 of 3
(2,934 Views)

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,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 3
(2,895 Views)

Thanks!!

0 Kudos
Message 3 of 3
(2,893 Views)