LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx conflit de nom

Solved!
Go to solution

Bonjour,

 

Je souhaite utiliser une carte USB pour la génération de signaux.

Dans Max, j'ai créé une carte virtuelle.

Je ne souhaite pas utiliser l'assistantDAQ pour des raisons de taille programme.

Donc je crée des tâches "à la main".

Mais voilà, lorsque j'utilise le VI "créer une tâches" avec par exemple comme nom "electron gun", la première execution est correcte, mais je ne vois pas apparaitre cette tache dans Max (même après rafraichissement, redémarage de max etc...)

Bien évidement, lorsque je réexecute le vi, j'ai une erreur " Le nom de tâche spécifié est en conflit avec un nom de tâche existant.". Sauf que la tâche n'apparait nul part. ni dans max, ni dans liste de tâche.

Je ne peux donc plus la supprimer...

Comment faire ?

0 Kudos
Message 1 of 7
(3,398 Views)

Translation:

 

Hello

 

I want to use a USB adapter for the generation of signals.

In Max, I created a virtual adapter.

I do not use the assistantDAQ for reasons of program size.

So I create tasks "by hand".

But that is, when I use the "create a task" VI with such as the name "electron gun", the first execution is correct, but I have not shown this spot in Max (even after refresh, redémarage Max etc...)

Good course, when I réexecute the vi, I have an error "the specified task name is conflict with an existing task name.". Except that the task will appear no share in max, or task list.

Therefore, I can't delete it...

How do I?

 

 

If I understand you properly you are generating a task programmicly then trying to restart it. I believe that the reason that you are seing this error is because that you never close the reference to the orginal reference. You need to create the task and send it to a shift register. You can work with the task through out your code with out having to restart the task. When you close the program you need to clear the task. This way you will be able to restart the task without the error.

Tim
GHSP
0 Kudos
Message 2 of 7
(3,387 Views)

Thanks...

For delete the task in memory, I must restart labview.

But why when I create task manualy I can't see in Max ?

If I do same in DAQAssistant, I see the newer task

0 Kudos
Message 3 of 7
(3,379 Views)
Solution
Accepted by topic author akyso

 


@akyso wrote:

Thanks...

For delete the task in memory, I must restart labview.

But why when I create task manualy I can't see in Max ?

If I do same in DAQAssistant, I see the newer task


 

You do not need to restart LabVIEW to delete the task in memory. You simply need to clear the task. If you do that the task will no longer be avaliable to use and you will have to restart it.

 

The task is not set up in MAX if you set it up manually. It set these task up virtually if you do it manually in the program. It only exists in memory while the task is running.

 

See the program that I attached. I hope it will help with the understanding.

 

 

Tim
GHSP
0 Kudos
Message 4 of 7
(3,372 Views)

Ok

Thanks a lot.

In fact, the first time, I tested this create task, I executed but i don't clear after.

Then I cannot find solution for refind reference.

I tested (for refind reference) to use Task list, but it was empty.

 

If I understand, when you lost the reference of task, it's finish, you cannot delete this.

In my program, creation of task is sub VI. (see my exemple).

I hoped refind ref by using task list. But no...

But ok, I use my VI with Indicator task linked to this VI function.

 

Thanks

0 Kudos
Message 5 of 7
(3,368 Views)

 


@akyso wrote:

Ok

Thanks a lot.

In fact, the first time, I tested this create task, I executed but i don't clear after.

Then I cannot find solution for refind reference.

I tested (for refind reference) to use Task list, but it was empty.

 

If I understand, when you lost the reference of task, it's finish, you cannot delete this.

In my program, creation of task is sub VI. (see my exemple).

I hoped refind ref by using task list. But no...

But ok, I use my VI with Indicator task linked to this VI function.

 

Thanks


Here is how I would use your VI to start a simple AO loop. I forgot to add the wait in the wile loop. When you open the example add a 50 msec wait in the loop.

 

Tim
GHSP
0 Kudos
Message 6 of 7
(3,358 Views)

Yes... He work properly

 

Thanks...

0 Kudos
Message 7 of 7
(3,355 Views)