02-07-2013 02:35 PM
I am trying to connect different modules to get the one result array via simulated cDAQ-9188. The first module works fine but the second one does not show anything except 0. What is wrong here?
02-07-2013 03:28 PM
My best guess is that the DAQmx Create Channel is throwing an error thus preventing the second unflatten from functioning. What simulated cards do you have in your simulated chassis?
02-07-2013 03:41 PM
Sorry, I don't have DAQmx installed here so I cannot really look at the bulk of your program, but you should definitely rearchitect your "pause" code.
Currently you use a greedy inner loop. Just put a case around the DAQ part with the false case being empty (all error and references wired across). No locals needed.
02-07-2013 05:00 PM - edited 02-07-2013 05:01 PM
@Charles_CLA wrote:
My best guess is that the DAQmx Create Channel is throwing an error thus preventing the second unflatten from functioning. What simulated cards do you have in your simulated chassis?
9188 cDAQ, 2 pieces 9214, and 1 piece 9203.
02-07-2013 05:27 PM
@altenbach wrote:
Sorry, I don't have DAQmx installed here so I cannot really look at the bulk of your program, but you should definitely rearchitect your "pause" code.
Currently you use a greedy inner loop. Just put a case around the DAQ part with the false case being empty (all error and references wired across). No locals needed.
Thank you. It is a nice shot. I did not know it. I attahed the png files 1st one is my first vi. I added it to make you see the functions. The 2nd one is about pause code. Did I understand you correctly? By the way LabToons is really good 😄
02-07-2013 06:38 PM
@newbieeng wrote:
Did I understand you correctly?
Yes, looks good. 1000ms is a bit short for the pause case, so you might want to set that to 100ms. Place the wait after the case and place two different wait time diagram constants in the two cases as needed.