07-21-2010 06:43 AM
I'm a complete novice in Labview and data acquisition, but have managed to get so far with the attached vi. However, when I run my vi I get the error 200279. I understand its all to do with sampling etc, but just cannot figure out where I'm going wrong. I'm hoping that someone within the community can give me some pointers as to what I'm doing wrong.
07-21-2010 08:48 AM
07-21-2010 10:26 AM
Thank you for the link. It seems to work by selecting number of samples instead of continuous sampling.
Like I said in my earlier post, I'm a complete novice and was just wondering if my coding (block diagram) makes sense or are there any improvements I should make? Ideally i would prefer the vi to start/stop logging data at a push of a button rather than recording the data once the vi is run, but not sure how i go about this. Any help would be greatly appreciated.
07-29-2010 08:09 AM
Hi there Asvaldr,
There are, as with any coding language, MANY ways of doing this. Perhaps the most simple would be to use a small case structure around the write-to-file section of the code. When using case structures in this way you can leave the "False" case blank or wire data straight through as required, and move your write-to-file code into the "True" case.
One thing to note would be whether data aquired before you hit the write button is to be disgarded, and only the data acquired after hitting the write button is saved to file.
Or in rarer scenarios when you might want the data acquired before the 'write button' is pressed to be stored in a buffer, and written to the start of the file using a FIFO system (First In, First Out) once the button is pressed.
Thats an interesting looking application of LabVIEW you have there, best of luck with it!