DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Ni-DAQmx tasks

Hi, How do you reset the NI-DAQMx tasks in dasylablab 12.0? I have tried to do a reset in MAX but the tasks doesn´t disappear in Dasylab, even after I removed Dasylab an installed it again. I am using the Task timebase several places in my worksheet, and if i have made changes in MAX the only place it works is at the input module, not in generators ect. As you can see in the attached files there are more than one task with the same name, and after creating the "Noise test" task in MAX, synch Dasylab with MAX, the generator module still selects the wrong task as timebase. Rgds. Per Skov
Download All
0 Kudos
Message 1 of 7
(6,939 Views)

Perhaps the task's timing mode is not "continuous" but "N samples" or "1 Sample (on Demand)"?

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 2 of 7
(6,920 Views)

No, that is not the problem, the task is continious.

0 Kudos
Message 3 of 7
(6,917 Views)

Can you attach the MAX-config as .nce-file to this forum, please?

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 4 of 7
(6,912 Views)

Attached noise.zip

0 Kudos
Message 5 of 7
(6,911 Views)

Ah...misunderstanding.

 

The tasks in (parentheses) are saved in the worksheet file, not in DASYLab. So re-installing DASYLab will not help.

 

Select all(!) modules, copy the selection (CTRL+C), and hit the "New"-button (next to the Stop-button). When DASYLab asks to carry over the configuration, decline. Paste (CTRL+V) the selection into the fresh worksheet. Save the file. Look into the timebase dialog of the generator: no (phantom task) should be visible.

 

Alternative 1: Save the worksheet as ASCII-worksheet (Save as... -> DSA), edit the DSA-file with a texteditor. Search for the name of the (phantom tasks), and remove the corresponding entries -- do not damage the file's structure, so keep a backup!

 

Alternative 2: Attach the worksheet to the forum and i'll try to do A1 for you.

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 6 of 7
(6,901 Views)

It is not possible to copy the worksheet because i am using a lot of black boxes, so that options can´t be used.

 

I have tried saving as DSA, and it was quite easy to locate the time base settings, and I succesfully removed the unwanted time bases.

After editing I saved the file again (same name), and loaded it into Dasylab. The worksheet worked, but it had lost information about several global strings.

 

The missing strings are all calculated ones like this one:

strfmt ( ${VDMEAN}, 5, 2) +";"+strfmt ( ${VDMIN}, 5, 2)+";"+strfmt ( ${VDMAX}, 5, 2)+";"+strfmt ( ${VDSTD}, 5, 2)

After editing the DSA file and loading it into Dasylab it looks like this:

'strfmt ( ${VDMEAN}, 5, 2) +"

In the DSA file it is still:

Expression[42] = 'strfmt ( ${VDMEAN}, 5, 2) +";"+strfmt ( ${VDMIN}, 5, 2)+";"+strfmt ( ${VDMAX}, 5, 2)+";"+strfmt ( ${VDSTD}, 5, 2)';

Apparently It is the quotation marks that confuses Dasylab when loading DSA files. The solution is to export the global strings/variables from the original worksheet, do the edit of the DSA file load it into Dasylab and then import the strings/variables, save the worksheet with an new name.

 

Problem solved, but I think that it should be possible to remove unwanted tasks directly in Dasylab.

 

Thank you for you help:-)

0 Kudos
Message 7 of 7
(6,873 Views)