09-26-2006 02:22 PM
09-26-2006 02:44 PM
09-26-2006 02:45 PM
There should be no problem to read a file of any size (within limits of the OS and memory resources). You must be doing something wrong.
Can you attach your VI to read the file? Can you open the whole file of you create a local copy first?
09-27-2006 06:35 AM
Here is a copy of my Read-bin.vi and a sample file which should cover about 10-15 seconds of a 16 waveform capture. I have also attached the Write-bin.vi I have built, but it is set up to run on the RTOS.
I also have another vi I am using as the external trigger. Normally my laptop is running the Trigger.vi and also serving as the central server during this development phase. Then I run the Write-bin.vi on the RTOS unit over ethernet. My trigger signal is a shared network variable. When ON the capture is running and stores the data on the RTOS hard drive. When OFF the capture stops, the file is transferred via FTP to my "central server" and then deleted from the RTOS disk. In order to ensure the transfer took place I have modified the FTP-PUT.vi so it would output the response code from the server when the connection closes. That is the trigger to delete the file on the RTOS unit. I have also included that vi.
I hope someone can point me in the right direction...
Thanks a Ton
technomage
09-27-2006 06:54 AM
Ooops, I forgot to say that I had renamed the .bin file to .txt to avoid any problem posting it. When I decided to zip them all together I forgot to name it back to .bin
sorry
technomage
09-27-2006 07:21 AM
09-27-2006 08:23 AM
So, if I understand correctly, the main thing I am doing wrong is using the DAQ assistant to read the analog inputs. Isn't that what would be giving me the Dynamic Data? Should I be using the DAQ primitives instead?
I guess my problem was based on the fact that I am generating rather large files so I assumed it was a continuous acquisition. Even though I am saving a "single entity", I must be saving many of them in the file.
I will dig deeper...
Thanks
technomage
09-28-2006 08:07 AM
09-28-2006 08:14 AM
Actually I have found a way to use my "mistake" to my advantage. When I wired the "Count" input as you suggested, it turned the output into an "1D Array of, Cluster of 1 element of, 1D Array of, Waveform DBL". Now to get the waveforms out I added an "Index Array" followed by an "Unbundle". This got me back to my original array of waveforms.
While playing around with the "Count" value and the "Index" value I discovered that I can now pull out any "Segment" of this large file and display it on the chart. Now I just need to work on my loops so it will re-read the file and display the selected segment, without having to stop and restart the vi. Unfortunately the "read" takes place outside my While loop, so it only happens when the vi is first started.
I may post it when I get close...
technomage
09-28-2006 08:15 AM
Hi
I did not read all messages because I read just one word in your first post "Chart". I'd just say try to use a Graph instead.