11-21-2019 12:02 PM
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
11-21-2019 12:23 PM
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?
11-21-2019 12:58 PM - edited 11-21-2019 12:59 PM
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
11-21-2019 01:07 PM - edited 11-21-2019 01:17 PM
I have never heard (besides in the error) of or used DAQmx. Do you have any suggestions where i could see a good tutorial.
11-21-2019 02:34 PM
11-21-2019 02:55 PM
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
11-21-2019 03:02 PM
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.
11-21-2019 04:00 PM
11-24-2019 05:40 PM
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?
11-24-2019 05:44 PM
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.