LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Code Generation failed to execute on LabVIEW 2023 Q3

Solved!
Go to solution

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!

0 Kudos
Message 1 of 6
(1,587 Views)

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)

-------------------------------------------------------
Applications Engineer | TME Systems
Message 2 of 6
(1,536 Views)

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.

0 Kudos
Message 3 of 6
(1,488 Views)

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")…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(1,484 Views)

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?

0 Kudos
Message 5 of 6
(1,476 Views)
Solution
Accepted by topic author S3Lab

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(1,471 Views)