LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timer problem



@Aquaphire wrote:
PS> I still havent managed to fix the problem... so if anyone can help... 😉 thanks, much appreciated.



Aquaphire, Attached is a bit different than altenbach's, but may give you ideas. The code for your header was getting overly complicated and had unnecessary holdovers from when you were trying to store data in columns (e.g. transpose and then transpose back).
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 21 of 26
(1,045 Views)
Hey donald, thanks a lot for the answer. I'm looking over it now... thanks for fixing more than just my question!!!
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 22 of 26
(1,034 Views)
There are plenty of ways to improve it further:
 
You should open the file once at the beginning and write the header, then just append in the loop, keeping the file open for the duration of the run.
Use an event structure to get better resolution. (At the moment you are limited to 150ms and you constantly run empty cycles).
 
(If you need to be able to modify the sample designation during the run, you would start the loop with an empty file, then read it after the loop, concatenate it with the header, then write everything back to the file at postition zero. No need to convert it to array and back. Modify as needed.)
 
Message 23 of 26
(1,021 Views)

I've added a few more cleanup steps for completeness:

  • Clear the existing table contents at start of program.
  • We don't need to get the EOF position, the final size can be tapped right from the shift register. 🙂

 

Message 24 of 26
(1,007 Views)

Thanks for the excessive amount of help! Unexpected, but welcome. Thanks a lot.

Question: What's the error in v16 ? I don't udnerstand how the "source" thing isn't connected to the rest of the program (broken wiring)

 

Message Edited by Aquaphire on 07-06-2005 02:27 PM

Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 25 of 26
(1,008 Views)


@Aquaphire wrote:

Question: What's the error in v16 ? I don't udnerstand how the "source" thing isn't connected to the rest of the program (broken wiring).



Just click on "Source" and change it to "Type" or anything. A lot was added to the Event structure in LV7.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 26 of 26
(994 Views)