LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 12
(3,878 Views)

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 Kudos
Message 2 of 12
(3,870 Views)

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 Kudos
Message 3 of 12
(3,843 Views)

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 Kudos
Message 4 of 12
(3,798 Views)

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 Kudos
Message 5 of 12
(3,795 Views)

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 Kudos
Message 6 of 12
(3,780 Views)

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 Kudos
Message 7 of 12
(3,774 Views)

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 Kudos
Message 8 of 12
(3,757 Views)

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

Download All
0 Kudos
Message 9 of 12
(3,704 Views)

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 Kudos
Message 10 of 12
(3,688 Views)