07-16-2008 01:01 PM
LabVIEW,
I would like to create a program that simply takes a few random numbers and then saves them in a text file. Easy, right? Well here is my problem…. I have my VI setup so that it generates 3 different random numbers every second. I need those numbers to be recorded. My VI currently writes those numbers into an array, and then into a .txt file but it only records one line. And every time the number changes that line is just replaced with the 3 new numbers. It should be adding a new line with the updated numbers.
The screen shot I have attached includes a feedback node, which I used to get the array to include more data, however it does not display the data on the next line…
Without the feedback loop the code operates as stated above.
Any thoughts?
07-16-2008 01:05 PM
07-16-2008 01:07 PM
07-16-2008 01:15 PM
crap i just attached the wrong file... im not sure where my mind was.. thanks for the heads up... here is the actual jpeg. of my VI.
07-16-2008
01:46 PM
- last edited on
04-29-2025
03:54 PM
by
Content Cleaner
What is the purpose of the shift register? It's counting for no apparent reason. If you want the loop count, just use the "i" terminal.
I can't quite figure out what you're trying to do with the Feedback Node. I'm guessing you're not properly using it. Check the LabVIEW Help on how this node works.
Also, you should be using the Build Path function to create your paths rather than strings.
07-16-2008 01:50 PM
07-16-2008 02:09 PM