- From: Huang Wei <isaac_huangwei_at_hotmail.com>
- Date: Fri, 27 Sep 2002 15:36:44 +0800
I have written an application in C about continuous data aquistion under
Linux.
the members of comedi_cmd structure are the following:(1 channel)
cmd->subdev = subdevice;
cmd->flags = 0;
cmd->start_src = TRIG_NOW;
cmd->start_arg = 0;
cmd->scan_begin_src = TRIG_TIMER;
cmd->scan_begin_arg = 1e9/freq; /* in ns */
cmd->convert_src = TRIG_TIMER;
cmd->convert_arg = 1; /* in ns */
cmd->scan_end_src = TRIG_COUNT;
cmd->scan_end_arg = n_chan; /* number of channels */
cmd->stop_src = TRIG_NONE;
cmd->stop_arg = 0;
(*Chan_List)->Numeric[0] = CR_PACK(0,0,AREF_GROUND);
cmd->chanlist = (*Chan_List)->Numeric;
cmd->chanlist_len = 1;
It works perfectly in C. However, when I transplant it into Labview VI. (To
test,
I put all the code in one CIN VI). The linux crashed as soon as I press
start, so I have to restart.
What's up?
I have seen the result. the system crashes when doing comedi_command
function. But the comedi_cmd structure is the same as in C application. I
am totally confused.
Thank you!
_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。http://www.hotmail.com/cn
Received on 2002-09-27Z06:36:44