09-22-2023 06:36 AM
Greetings,
I'm trying to create my first LabVIEW project with a cRIO-9054 system. The project consists on the acquisition of a tension signal by means of a NI 9219 module. The version of the software is the latest (LabVIEW 2023 Q3) and I've configured the hardware so that I can use the NI-DAQ toolbox.
When I try to use the DAQ Assistant it always displays the "LabVIEW Code Generation failed to execute" error.
I've tryed to follow every troubleshooting procedure but it didn't work. Eventually, I've read in other discussions that this problem happened in the versions 2022 Q3 too and the proposed solution was the installation of the version 2021 SP.
I tried to download such version but this didn't solve the problem. Can someone help me with this problem? Thank you so much!
Solved! Go to Solution.
09-22-2023 12:22 PM
My recommendation: Don't use DAQ Assistant.
There are plenty of shipping examples available. See Take Your First Measurement in LabVIEW Real-Time (Data Logging)
09-25-2023 03:03 AM
Many thanks for your answer. The reason why I would like to use the DAQ assistant is that with the examples like the one that you recommended I'm not able to save the data that I acquire since the path that I enter is not recognized and it always return me the error-201304 "File path specified is invalid, or the file is not a valid TDMS file". I doubt that the problem is the location of the VI that allows a correct reading of the physical channel but it's unable to recognize the path folder in my PC.
I attach the project and the VI for a better understending of my problem. Thank you so much.
09-25-2023 03:18 AM
Hi S3Lab,
@S3Lab wrote:
I'm not able to save the data that I acquire since the path that I enter is not recognized and it always return me the error-201304 "File path specified is invalid, or the file is not a valid TDMS file". I doubt that the problem is the location of the VI that allows a correct reading of the physical channel but it's unable to recognize the path folder in my PC.
The problem is not with your PC or the example VI, the problem is (like in most cases) between keyboard and chair (PEBKAC)… 😉
When you want to save data with a VI running on your cRIO then you must select a path available to your cRIO!
The cRIO has NO access to the harddrive of your computer, it only knows its own internal harddrive. Use a path on that internal drive "c" (or USB memorystick "u")…
09-25-2023 04:04 AM
I see. Since I'm afraid that the size of the file produced might exceed the dimension of the space available on the cRIO, do you know if there's some way to stream and store datas to the PC so that I use more space?
09-25-2023 04:10 AM - edited 09-25-2023 04:11 AM
Hi S3Lab,
@S3Lab wrote:
I see. Since I'm afraid that the size of the file produced might exceed the dimension of the space available on the cRIO, do you know if there's some way to stream and store datas to the PC so that I use more space?
Sure there is a way to stream data from cRIO to your computer!
Have you ever considered to use the examples coming with LabVIEW?
There are example projects explaining how to implement data transfers to/from cRIO: File->New… or File->Create project…
There are also example VIs in the example finder explaining certain functions/aspects like NetworkStreams…