From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-08-2020 03:52 AM
Hi all,
I've been working on a LabVIEW program which outputs an arbitrary waveform on a USB6353 DAQ. The output is manually triggered with a counter, and should only be written to AO once. All is working well, except that whenever I change the waveform I'd like to output, I have to abort the program to get it to update. Otherwise, it will just output the first waveform (regeneration allowed) or output nothing (no regeneration allowed). My subVI is attached. I immensely appreciate any help.
PS: I realize the retriggerable property node is disabled. Changing it does not change my outcome, though.
01-08-2020 03:58 AM - edited 01-08-2020 04:02 AM
Hi Aeryck,
please don't use images in ancient BMP format, PNG is much smaller (29kB vs 1.2MB).
And you should inline the image instead of attaching:
In general you should also attach the VI instead of a plain image!
What are you doing in those other states?
Do you stop your AO task somewhere and write a new waveform?
Do you create a new task each time state 2 is called? (I hope it's not the case…)
01-08-2020 03:59 AM
What you want is possible and should just require Writing a new output at the appropriate time.
You said you attached the VI, but actually you attached an image of a VI, so I can't see the other cases.
I'm suspicious about the use default if unwired tasks - it seems likely you're doing "something wrong" in the handling of tasks which is causing your problems.
Can you attach the actual VI or a snippet?
01-08-2020 04:00 AM
Apologies, I'll keep that in mind for future posts.
01-08-2020 04:04 AM
Here's the VI. Thank you for the quick response!
01-08-2020 02:57 PM
Hi Aeryck,
So there's a couple of things I think you might have missed about LabVIEW, based on your VI. A few changes might get you closer to what you're looking for. The points below are numbered to ease in referencing in a reply, not because of any particular order of importance: