キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

error -200429

Hello,

 

I get an error on daqmx 6211

 

 

Possible reason(s):

Value passed to the Task/Channels In control is an empty string (or I/O control).

The value must refer to a valid task or valid channels.

 

App is simple and I dont see a reason for error

0 件の賞賛
メッセージ1/12
4,375件の閲覧回数

Hi,

 

You are getting this error because you selected "Finite Sample". This way, the task will be created, executed, and stopped (thus deleted). That's why you get this error.

 

You have to select "Continuous Sample" if you want to generate continuously. But you will have to change the way you handle your task in the while loop (never put a Start Task and Stop Task in a loop).

 

Regards,

Da Helmut
Voir le profil de Maxime M. sur LinkedIn - View Maxime M.'s profile on LinkedIn
0 件の賞賛
メッセージ2/12
4,367件の閲覧回数

Dear sasko,

 

In my opinion, it is correct to use "Finite Samples". But you cannot use "Clear Task" inside the loop - it deletes the task and its reference thus creating your error. Replace "Clear Task" with "Stop Task", and put "Clear Task" outside the loop, just before error handler.

Please let me know if it worked.

 

Regards,

0 件の賞賛
メッセージ3/12
4,340件の閲覧回数

Dear Mateusz,

 

You are right, It works after I replace "clear task" with "stop task".

Now is OK with this.

 

I' try to make something like burst generator, I 'm sending 50 pulse with 500Hz frequency and this is made for 100ms.

The problem is long time between two union of pulses, of about 200ms and I can not make it shorter.

 

Any idea ?

 

Regards

 

0 件の賞賛
メッセージ4/12
4,295件の閲覧回数

Hi,

 

Did you try using a Timed Loop or a Timed Sequence Structure ?

 

Regards,

Da Helmut
Voir le profil de Maxime M. sur LinkedIn - View Maxime M.'s profile on LinkedIn
0 件の賞賛
メッセージ5/12
4,292件の閲覧回数

Dear sasko,

 

How do you control the time between separate pulse trains? Have you tried what Helmut O'Brian mentioned above?

What hardware are you using?

 

Regards,

0 件の賞賛
メッセージ6/12
4,277件の閲覧回数

I don't control time between pulses, only as fast as possible.

 

I'm use NI USB 6211 DAQ.

 

I will try to use timing loop,

 

Sasa

0 件の賞賛
メッセージ7/12
4,271件の閲覧回数

Dear sasko,

 

Please let us know how it went. I would also like to know what you mean by "long time between two union of pulses". Could you maybe post some screenshots?
You can also try different architecture, please have a look here:

http://decibel.ni.com/content/docs/DOC-12164

The only problem is this is continuous generation, but stopping it after certein number of iterations shouldn't be difficult.

 

 

Regards,

0 件の賞賛
メッセージ8/12
4,254件の閲覧回数

Hello,

 

I will try to give more detail about my application.

I make a software for scanning of material with sensor and I have to control a step motor to move 1mm, measure with AD and same again.

To move step motor I have to send a finite number of pulses to driver and then I need to measure the value from sensor and place on graph.

The problem is long time between pulses of 200ms ( see attch) which slow down my measurement.

I can not use continous pulse generation since I need to know when I can measure. I don't have any delay in software.

 

Regards

すべてをダウンロード
0 件の賞賛
メッセージ9/12
4,201件の閲覧回数

Dear sasko,

 

Did you try removing the "for loop", just to check if a single pulse train can be generated properly?

And, if I understand correctly, you could use the continuous generation - you should just use the iteration counter to determine how many pulses have been generated.

 

Regards,

0 件の賞賛
メッセージ10/12
4,185件の閲覧回数