07-07-2005 10:29 AM
07-07-2005 11:49 AM
While I can't help you with the compiling error codes I will offer two comments. If you are not passing data to the CIN, if it is retrieving the data from an "unformatted" file and formatting it you could make it an executable and call it with the system exec function in LabVIEW. It does seem unusual that the LabVIEW program takes several minutes to perform this formatting and the C++ does it in a fraction of a second. I suspect that the LV could could benefit from some severe optimization that would bring down this formatting time to something you would find reasonable. If you can post the "formatting" code here a number of could look at it and either suggest ways to speed it up or as frequently happens, return the modified code. LabVIEW is a compiled language which has gotten pretty good at producing optimized machine code when it compiles (the first time it is run after making any changes for instance), but it won't optimize the source code (yet!)
P.M.
07-07-2005 12:25 PM
Here is the formatting code. It executes very quickly if frames 3 and 4 of the stacked sequence structure are removed. Frame 3 puts the data in an array and frame 4 formats it into rows with 8 pieces of data in each row. "Channels in spectrum" is always equal to 8192. This part of the program seemed pretty straightforward, and I'm not sure why it takes so long to run. If there is a better way to do it, any help would be greatly appreciated.
Evan
07-07-2005 01:04 PM
07-07-2005 03:35 PM
Hi,
The data is arranged very simply with one piece of data on each line. I've attached an example.
Thanks so much for your help.
07-07-2005 04:12 PM