ceetee Posted June 12, 2009 Share Posted June 12, 2009 Hi there everybody I,m new to DAQFACTORY (starter) and I have hopefully a simple question!. I stream to a logged file in the *.csv format which is stopped with a manual button press , how do you close this file?. If I try to open this file in Excel, while the application is running it informs me the file is being used by another program and will not open. In order to open this file I have to shutdown DAQFACTORY. How do you close this file after logging?. I start streaming using the following: Device.LabJack.AddRequest(1,"LJ_ioPUT_CONFIG","LJ_chSTREAM_SCAN_FREQUENCY",100,0,0) // Set Scan Rate: 500 samples/sec Device.LabJack.AddRequest(1,"LJ_ioPUT_CONFIG","LJ_chSTREAM_BUFFER_SIZE",2000,0,0) // Specify a buffer in the UD driver. Device.LabJack.AddRequest(1,"LJ_ioCLEAR_STREAM_CHANNELS",0,0,0,0) Device.LabJack.AddRequest(1,"LJ_ioADD_STREAM_CHANNEL",0,0,0,0) // Add four streaming channels Device.LabJack.AddRequest(1,"LJ_ioADD_STREAM_CHANNEL",1,0,0,0) Device.LabJack.AddRequest(1,"LJ_ioADD_STREAM_CHANNEL",2,0,0,0) Device.LabJack.AddRequest(1,"LJ_ioADD_STREAM_CHANNEL",3,0,0,0) Device.LabJack.GoOne(1) Device.LabJack.AddRequest(1,"LJ_ioSTART_STREAM",0,0,0,0) // Start Stream Request Device.LabJack.GoOne(1) I stop streaming thus: Device.LabJack.AddRequest(1,"LJ_ioSTOP_STREAM",0,0,0,0) // Stop Stream Request Device.LabJack.GoOne(1) All help gratefully recieved Cheers ceetee.................. Link to comment Share on other sites More sharing options...
AzeoTech Posted June 12, 2009 Share Posted June 12, 2009 Please see this post: http://www.azeotech.com/board/index.php?showtopic=3698 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.