LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate sinus via USB 6001

Solved!
Go to solution

Hello, 

I'd like to generate a sinus with a usb 6001.

I've found this example but I can't get it to work!

 

Do you know what causes the problem?

 

thanks in advance.

Problème génération sinus usb 6001.PNG

0 Kudos
Message 1 of 6
(2,782 Views)

Ho kooxy,

 

when you enable Autostart at DAQmxWrite you don't need to call DAQmxStartTask later on…

Did you read the error explanation?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(2,779 Views)

I've just deleted the DAQmxStartTask and the error don't  show up but the generation still dont work.

 

0 Kudos
Message 3 of 6
(2,767 Views)

Please give the task the time to generate your sine before stopping.

Message 4 of 6
(2,761 Views)
Solution
Accepted by topic author kooxy

Hi kooxy,

 

there is a DAQmxWaitUntilDone function - use it!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 6
(2,758 Views)

It works perfectly ! 

Thank you very much

 

Solution :

Solution génération sinus usb 6001.PNG

 

0 Kudos
Message 6 of 6
(2,755 Views)