Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6009 with nidaqmx & PyDAQmx Analog output error code -200077

Hi NNovak,

Please take a look at our Knowledge Article that provides a solution to the behavior that you're seeing:

"Error -200077 Using Analog Output Task in Python"

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019UBpSAM&l=nl-NL

 

You'll need to change the way you define the task as described in that article.

 

Best,

Ben

 

0 Kudos
Message 11 of 14
(981 Views)

Hi Ben,

 

thank you for your replay, I will have a look.

 

best

NNovak

0 Kudos
Message 12 of 14
(978 Views)

Hi,

I try the code you recommended:

import nidaqmx


with nidaqmx.Task() as task:
task.ao_channels.add_ao_voltage_chan("Dev1/ao0", 0, 5,)
print('1 Channel 1 Sample Write: ')
print(task.write(1.0))
task.stop()

 

It does not work, it gives the same error!

NNovak

Message 13 of 14
(977 Views)

OK, now it works I forgot name_to_assign_to_channel which even if you do not have specified you have to add ''!

Thanks

NNovak

Message 14 of 14
(972 Views)