LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to file from DBL

I currently have data being read by a Agilent 34401A and being displayed on a chart as a dbl. I want to write the data to a file with a data point from every sample. When I run the program I am only receiving data from 10 points. I am assuming it is the first 10 samples as they are all very close to 0. Is it possible to have all the data written to a file? I do not have excel on this computer so I am writing them as LVM. The data being read is from a Yokogawa GS200 which is set up on the front panel, this is to test that the data being written to the file is correct. Thank you in advance. 

Download All
0 Kudos
Message 1 of 3
(2,640 Views)

On the While loops where the measurements are taken, you have the array of measurements exit it with a standard tunnel.  Right click on the tunnel and under "Tunnel mode" select either "Indexing" (for 2D data) or "Concatenating" (for 1D data).

 

The current mode you're using just outputs the last value.

0 Kudos
Message 2 of 3
(2,609 Views)

Your file problem is only the tip of the iceberg. You might want to start with a few beginner tutorials before diving deeper into this. Who wrote this code?

 

  • First we have glaring overuse of greedy loops everywhere.
  • There are pointless loops that just act as a glorified sequence frame
  • You have a lot of duplicate code in the FOR loop, It would be better to use a simple inner state machine iterating over an array of times.
  • Why is the filename control typedef'd?
  • Why is the front panel maximized to the screen?
  • ...
0 Kudos
Message 3 of 3
(2,600 Views)