LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get, write the sin wave frequency

0 Kudos
Message 11 of 17
(789 Views)
First, since you need a waveform data type, just set the DAQmx Read to return that. Second, you are only passing the very last result to the Write to Spreadsheet File. You are not using autoindexing out of the while loop. Put the Write to Spreadsheet inside the loop or better, in a separate loop that you update with a queue.
0 Kudos
Message 12 of 17
(785 Views)

Hey Dennis,

 

Could you modify my attached programe. When i have put Write funkction in the While loop programe works very slowly with interuption inside working.

0 Kudos
Message 13 of 17
(777 Views)

That last modification is just plain silly.

 

If you want to use a separate loop with a queue, look at that design pattern. Go to File>New... and review the Producer?Consumer

 

 

0 Kudos
Message 14 of 17
(770 Views)

And now

Whot is wrong? all the time is the same result.

 

Best regards 

Marek

0 Kudos
Message 15 of 17
(761 Views)
I'm afraid that you are lacking a basic understanding of LabVIEW/dataflow/queues. The data CANNOT be passed from the top loop to any other loop. The producer loop is the top loop that you currently have and it is this loop that you MUST write to the queue.
0 Kudos
Message 16 of 17
(754 Views)
Have you taken any LV tutorials and learned about dataflow?

 

LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

 

Your lower two while loops don't run until the top while loop finishes because of the data dependency of the wires coming out of the tunnels.

 

When the top loop finishes, you only get the data from the final iteration of the loop.

 

Then you repetively enqueue that same data in the middle loop until you hit Stop2.  Simultaneously your bottom loop dequeues the data and writes it to the file.

 

What you did in the middle loop should be a part of your top loop.  And you should not have any wires coming out of one loop and going to the other.

Message Edited by Ravens Fan on 04-09-2010 11:43 AM
0 Kudos
Message 17 of 17
(752 Views)