Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple channel data Acquisition

Sir;
I m sending "code.rar" which contains "Recorder.dsw" project
please unzip the project and then run.When u run it will create a "Rec.txt" file in its folder this is actuallly a log file in which u can see start_scan time and ready flag on time which is wrriten in file after every minute.
Please run application for half an hour then go to appliction folder and open "rec.txt" and visit the log of ready on flag time.
For code Please see fllowing function of DataReader Class:

1)Start DataGrabbing
2)CallBack
Also please see wheather i have written the correct code of Config_daq_event_message to call The CallBack when it is time to transfer the data.Also suggest for callback should be called at the correct.please check parameters of Config_daq_Event_Message thanks
ajmal
Lead Data Scientist
0 Kudos
Message 11 of 17
(1,842 Views)
Hi Ajmal,

I just tried running your code. A window pops up with an OK button and a Cancel button. If I press OK, nothing happens. Is this how it is supposed to run? After I close the window and open Rec.txt, I only see 2 lines of text:
"Scan Start Time Mon Jun 13 14:22:42 2005
Ready on Time Mon Jun 13 14:23:42 2005"

Is this what you are seeing?

Regards,
Sean C.
0 Kudos
Message 12 of 17
(1,832 Views)
thanks sir ;
sir u need not to press any button like ok,cancel because the scanning is started in background in manager class whose object iscontained in Recorderdlg class.now sir delete the "rec.txt" and rerun the application for half an hour then u will find log of all ready on timing.thanks
ajmal
Lead Data Scientist
0 Kudos
Message 13 of 17
(1,829 Views)
thanks sir ;
sir u need not to press any button like ok,cancel because the scanning is started in background in manager class whose object iscontained in Recorderdlg class.now sir delete the "rec.txt" and rerun the application for half an hour then u will find log of all ready on timing.I m waiting for ur reply .thanks
ajmal
Lead Data Scientist
0 Kudos
Message 14 of 17
(1,811 Views)
Hello Ajmal,

I apologize for taking so long to reply.

I tried running your code on a PCI-6025E a couple of times today with the same results. After running the program and waiting 30 minutes, I open the Recorder.txt file and see only three lines:

"Scan Start Time Mon Jun 20 18:34:46 2005
Ready on Time Mon Jun 20 18:35:46 2005
Ready on Time Mon Jun 20 18:36:46 2005".

I have tried running this code on multiple boards and get the same results. Do you have any other boards you can test this against? Have you tried upgrading to NI-DAQ 7.4? If not, please do so. You can download this driver at: http://digital.ni.com/softlib.nsf/websearch/90B60D5899BCCCDB86256FC700581B89?opendocument&node=132060_US

Regards,
Sean C.
0 Kudos
Message 15 of 17
(1,801 Views)
hi sir
thanks for replying i have tested it for several time on my pci-6025e and i found the problem every time.
I have have version of the board is 6.9.2;
Sir please check "Rec.txt" not "Recorder.txt".Please check it again how is it posssible that the only three line are written though, in code i wrote the every time ready on time in the rec.txt file.Please analyse the code and the code in which i open the rec.txt file and writing the ready on timing.thanks and waiting for ur reply
bye
ajmal
Lead Data Scientist
0 Kudos
Message 16 of 17
(1,801 Views)
Hello Ajmal,

It was "Rec.txt" that I read.

Please try installing NI-DAQ 7.4 and see if the problem persists.

Regards,
Sean C.
0 Kudos
Message 17 of 17
(1,792 Views)