06-04-2020 02:45 PM
Hello,
I am using a USB-6356 DAQ device which I would like to use as an analog output source.
My waveform resembles a BPSK signal and is generated inside the "Modulation For Loop" (shown below). The waveform has been verified to be correct.
However, when I try to write the waveform to the DAQmx "Write" node, the program does not terminate and I get the error shown below without an analog output. When the "Wait Until Done" node is removed, the program terminates, again without an analog output.
Any help is appreciated!
06-04-2020 04:01 PM
I've done a ton of DAQ under classic LabVIEW but have not dabbled at all with NXG.
My educated guesses about what I'm looking at:
- when you configure task timing, the waveform appears to be used to define the sample rate. In classic LabVIEW, there's an input at the top for setting the the # samples to generate. When unwired it reverts to some default value like 1000.
- the waveform you write to the task also sets the size of the buffer. When I do finite acquisition, I make my buffer size match the # samples I designated when setting up task timing. I kinda suspect the error is a result of mismatch between these quantities. The specific error code doesn't ring a bell for me, but then again I make sure those quantities match.
- the wristwatch icon must be the "wait until done" that's throwing the error. I don't see a timeout value wired. In classic LabVIEW, there's an input for that and when unwired it takes on a default value of 10 sec. If your waveform is defined for a longer duration than the timeout, that could be your error cause as well.
-Kevin P
P.S. Side rant that as an engineer who would like his coding work to be taken seriously, the NXG icons and new graphical design are a giant leap in the wrong direction. It just shouts Preschool! Cartoons! Play Time! It seems embarrassing to show it to someone and say, "yeah, I get paid to do this."
Sorry OP, not your issue, I'm just getting crotchety and have to vent now and then.
06-08-2020 02:02 PM
I'm not sure if it is related or not but you have an uninitialized shift register which will retain information between runs. This would mean each run will append more data to the end over and over again. That shift register should be initialized with an empty waveform (just right click create constant). I'd also look at the inputs to that wait until done. It is possible you are saying something like "You have 1 second to complete this 5 second waveform". It will then wait 1s and error out.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-08-2020 05:47 PM
@Kevin_Price wrote:
I've done a ton of DAQ under classic LabVIEW but have not dabbled at all with NXG.
My educated guesses about what I'm looking at:
- when you configure task timing, the waveform appears to be used to define the sample rate. In classic LabVIEW, there's an input at the top for setting the the # samples to generate. When unwired it reverts to some default value like 1000.
- the waveform you write to the task also sets the size of the buffer. When I do finite acquisition, I make my buffer size match the # samples I designated when setting up task timing. I kinda suspect the error is a result of mismatch between these quantities. The specific error code doesn't ring a bell for me, but then again I make sure those quantities match.
- the wristwatch icon must be the "wait until done" that's throwing the error. I don't see a timeout value wired. In classic LabVIEW, there's an input for that and when unwired it takes on a default value of 10 sec. If your waveform is defined for a longer duration than the timeout, that could be your error cause as well.
-Kevin P
P.S. Side rant that as an engineer who would like his coding work to be taken seriously, the NXG icons and new graphical design are a giant leap in the wrong direction. It just shouts Preschool! Cartoons! Play Time! It seems embarrassing to show it to someone and say, "yeah, I get paid to do this."
Sorry OP, not your issue, I'm just getting crotchety and have to vent now and then.
All those round corners are so we won't hurt ourselves coding. 😉
06-15-2020 03:27 PM
Hello Hooovahh,
Unfortunately none of these work. The waveform duration is very short therefor timeout does not occur. The shift register is left intentionally not initialised as that setup produces the correct waveform.