LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error outputting square wave

I am using a USB-6259 unit to control a heater relay.  I'm using a square waveform generator to generate an analog waveform and then converting it to a digital waveform.  The waveform graph looks like it's supposed to when I do not try to output it to the digital output, but I get error 200547 when I try to send the waveform to the digital output.  This error says that DAQmx Write failed because a previous DAQmx Write automatically configured the output buffer size.  I did both things the error message suggested I try, which were to set the AutoStart to true (resulted in having not enough data in the buffer) and calling DAQmx Configure Output Buffer (said it wasn't applicable to this task.)  How can I get the digital waveform to write to my output channel?  I've attached the code below.  Thank you.
0 Kudos
Message 1 of 5
(3,011 Views)

CJones581,

     I was taking a look at your code, but I am unfamiliar with the TC_TypeK.vi.  Is this a subVI you created?  It seems it passes a number in and out, can I omit the VI for now, or can you post the subVI?  Thanks.

 

Matt Downey

0 Kudos
Message 2 of 5
(2,999 Views)
I created this Sub VI.  It converts a voltage from a thermocouple into a temperature.  I've attached it below, but you could also probably omit it for trouble-shooting.  Thank you.
0 Kudos
Message 3 of 5
(2,991 Views)

CJones581,

      Error code -200547  seems to be generated by the DAQ Assistant because it does not start the analog output after it has stopped.  I would recommend replacing the DAQ assistant with the standard DAQmx VIs.  If this does not correct your situation I would examine the Digial Output task you created in MAX.  I could not examine the task to verify it was created in the same way I created my task.  I generated the error code in a simplified VI using a NI USB-6008.  The error was cleared in the manner described above.  Hope this helps.  Let me know.

 

Matt Downey

Message 4 of 5
(2,983 Views)
I followed your suggestion and I am still getting Error 200547.  No changes I made to the output task helped.  I have attached my new code.  Do you have any other suggestions?
Download All
0 Kudos
Message 5 of 5
(2,964 Views)