From: MikeS81 on
Hi stekkie,
i get the data over several cycles with timestamp=current time and dt=1. I have only a simulated card. Where do you get an error?
Mike
From: stekkie on
I'm not getting an error. Everything works fine, the only problem is that he doesn't save any data after I push the enable button.
I attached a picture of the time stamp (I guess). Could you explain something more about what needs to be filled in?
Maybe when I use something else to save the data it might work? In stead of the 'write to measurment file'?
Thx!


time stamp.JPG:
http://forums.ni.com/attachments/ni/170/321643/1/time stamp.JPG
From: MikeS81 on
Hi stekkie,
do you mean this button "Start opnemen gegevens"? If yes, the point is, because of the button is outside the loop, the state of it will be read at the beginning. So if you stop the aquisition loop the state of the button was already read. You can use a message box and ask the user if he want to save the data. See the attached example.
 
Mike


STURING_MEETOPSTELLING_LV80.vi:
http://forums.ni.com/attachments/ni/170/321646/1/STURING_MEETOPSTELLING_LV80.vi
From: stekkie on
This works fine. When I run the application he saves data without me knowing it (so at the background). When I press the STOP button he asks me to save the data and then it is saved just the way I want it.
Maybe we can reverse the system so that he doesn't begin to save data at the beginning, but at the point that I press the 'start opnemen gegevens'-button?
I have to thank you very much Mike, I never would have found this!