LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unnamedTask<1D7E3>

I am constantly getting this error, sometimes it take 3 minute, sometimes it take 2 hours. I can never get a full experiment in before it stops recording.  Each experiment takes about 2-3 hours.

Error Code:

"Read cannot be performed because this version of DAQmx Read does not match the type of channels in the task. Use the version of DAQmx Read that corresponds to the channel type.

Requested Channel Type: Analog Input
Type of Channels Already in Task: Digital Input

Task Name: _unnamedTask<1D7E3>"

 

I am using a myDAQ to record battery test

 

0 Kudos
Message 1 of 11
(3,241 Views)

What is the error number?

 

Use block diagram cleanup on your VI to clean up that wiring.

 

What if you got rid of the DAQ Assistant and used the real DAQmx functions?

0 Kudos
Message 2 of 11
(3,231 Views)

 

What if you got rid of the DAQ Assistant and used the real DAQmx functions?

 

Edit:

 

Stupid Khoros ate my post!

 

Yes that would fix it.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 11
(3,218 Views)

I have never heard (besides in the error) of or used DAQmx. Do you have any suggestions where i could see a good tutorial. 

0 Kudos
Message 4 of 11
(3,208 Views)

Hi papajens,

 

search for "daqmx 10 functions" using your favourite search engine...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 11
(3,186 Views)

Thank you GerdW,

 

I rebuilt the VI with DAQmx functions. I was able get the program to successfully read the data from the myDAQ.  I am currently running the VI with no error yet. 

 

Sorry for my ignorance. I was not able to figure out how to write the data to a excel file yet. I am still using the write to fill function. I am hopping the changes I made will work. 

 

papajens

0 Kudos
Message 6 of 11
(3,179 Views)

If you attach your code and not a picture you will get more help. There are a few different ways to save the data to file. When you are ready for that come back for help but post your code.

Tim
GHSP
0 Kudos
Message 7 of 11
(3,176 Views)

Hi jens,

 

why don't you use AutoCleanup?

 

Beside this annoyance: there are a lot of functions in the file palette! Did you explore them?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(3,165 Views)

Thank guys for the help.

 

I am running into a new error. My programs runs fine for a while (about one hour) then it pause the VI and prompts "choose or enter path file" in the format of a .zip. After that is starts to do the same thing ever few minutes when I reinitialize the VI. There is no error message that pops up, just the choose file window. My write function is set to automatically append to a file.

 

Any ideas?

Download All
0 Kudos
Message 9 of 11
(3,043 Views)

Here is my code. I am still interested in the different ways to save the data to file. I ran into a new issue. My programs runs fine for a while (about one hour) then it pause the VI and prompts "choose or enter path file" in the format of a .zip. After that is starts to do the same thing ever few minutes when I reinitialize the VI. There is no error message that pops up, just the choose file window. My write function is set to automatically append to a file.

Download All
0 Kudos
Message 10 of 11
(3,039 Views)