LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indexing dynamic data

Solved!
Go to solution

I am trying to store all the information going through the dynamic data wire, from the main loop, by indexing. I just want to capture all the data flowing through these wires and put them into Excel at one time. My only thought on indexing was to create a seperate loop outside of the main loop just so I could index the values. I have tried putting the indexing in the main loop, but then I only capture one second of data. If I put a seperate while loop in my main loop to index, my program enters an infinite loop (perhaps because my stop conditions were not correct).

 

I am attaching my entire program to this message. The problematic loop is highlighted in yellow.

 

If anyone has any suggestions or advice, please reply! Thank you!

0 Kudos
Message 1 of 2
(2,639 Views)
Solution
Accepted by topic author hotshot

I did some work on your VI and I had some thoughts:

 

1. You need to get rid of the DAQ assistant - Done

2. You need to orginize your code better - Done

3. You need to look into a state machine - Look at the NI example file to see how this could be done.

4. Add an event structure to handle the stop function. This should  help with the problem that you are having.

5. You should always try and fit you code into one window.

6. You will need to check that all of the calculations and graphs work after I changed things around.

 

 

I hope some of this helps.

 

 

Tim
GHSP
Message 2 of 2
(2,624 Views)