12-17-2016 05:05 PM
Hello,
I tried different suggested solutions to fix this error but none worked so far. Any great idea how can I modify this section of the code to solve this. Thank you so much in advance for kind help.
12-18-2016 09:43 AM
Thank you for including a piece of an actual VI. I did a Diagram Cleanup on it, straightened out some wires, and am beginning to "see the Forest for the Trees". I notice you have an I/O constant for /Dev1/PFI10 wired into DAQmx Timing and into a DAQmx Trigger Property Node -- it appears Greyed Out going into DAQmx Timing, but not into the Property Node. Why? You also seem to be generating a finite number of Trigger Pulses with Dev1/Ctr1 -- why not Continuous, as you clear the task right after taking the data.
Is this "wrapped" in a While loop? If so, put BurstCounts on a Shift Register and don't use Local Variables.
Just in case someone else needs to maintain this code, a few sentences in a Free Label discussing the Timing/Triggering Logic would be helpful.
Bob Schor
12-18-2016 07:06 PM
Hello Bob,
Thank you for kind help and information. The "Burst Count" is being read from a different vi in this vi and being used. Not sure what would be the best way to do that. I did change the "trigger" to continues instead of "finite" but not much difference. I added the entire code just in case if it does help. It is written under LabVIEW 2015.
12-18-2016 11:32 PM
Oh, my goodness! Another Chance to Teach ...
Bob Schor
12-19-2016 09:33 AM
Hello Bob,
Thank you so much for your kind reply and the great suggestions!