09-11-2006 11:10 AM
09-13-2006 08:43 AM
09-13-2006 10:50 AM
03-17-2020 07:08 AM
hello,I have similar problems.
According to the C language sample provided by NIDAQmx, I found the analog output routine. I can run the single task single output normally, but once I changed the analog output channel to two, for example,"Dev1 / ao0" changed to "Dev1 / ao0: 1 ", there is error and it prompts me that attempted writing analog data is too big or too small.
Do you know why?
I really hope if angbody can help me!
Really thanks!
03-20-2020 07:06 AM
Hi,
changing from Dev1/ao0 with one line output to Dev1/ao0:1 for output on two lines is essential. You have to change your code that you supply two values. Otherwise you get an error. Furthermore you should check in MAX whether your hardware is capable of two analog outputs.
Greetings
Andreas
03-20-2020 11:02 AM
It is expecting 2 values, but if you only passed in one value, it will just go off the end of the data structure you passed in and take whatever random value that was in memory. That is probably why you are getting an error intermittently, because well, it is trying to interpret whatever random value that is in memory. Sometimes by luck, it is a value that the DAC can output, sometime it is not.