LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is wrong here?

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?

Egemen
0 Kudos
Message 1 of 6
(2,889 Views)

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?

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
Message 2 of 6
(2,866 Views)

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.

0 Kudos
Message 3 of 6
(2,855 Views)

@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.

Egemen
0 Kudos
Message 4 of 6
(2,831 Views)

@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 😄

Egemen
Download All
0 Kudos
Message 5 of 6
(2,816 Views)

@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.

0 Kudos
Message 6 of 6
(2,795 Views)