LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Warning: connection to the target (cRIO)has been lost

Hey,

 

When I am running this particular VI attached below (have also added a picture of it), the cRIO 9045 automatically gets disconnected after running for couple of seconds and showing the warning  " connection to the cRIO has been lost ".Then for second time i have to reconnect the cRIO and then deploying the program. I am using Labview 2020 SP1.

Can anyone find the reason for this warning? Thank you for your help with this.

Download All
0 Kudos
Message 1 of 4
(772 Views)

Hi Draka,

 


@Draka wrote:

When I am running this particular VI attached below (have also added a picture of it), the cRIO 9045 automatically gets disconnected after running for couple of seconds and showing the warning  " connection to the cRIO has been lost ".


I only had those "connection lost" messages when the cRIO was on (CPU) overload…

Did you check the CPU load?

 

  • Do you really need to write to a shared variable at 1kHz?
  • Do you really need to read from that shared variable also at 1kHz?
  • Do you really need to write to a file at 1kHz?
  • Why don't you use a queue/FIFO to send data from one loop to the other?
  • Why do you need to use DDT wires?
  • Do you really want to read 1 sample/ch at 1kS/s? Why don't you setup the DAQmx task using plain DAQmx functions, including DAQmxTiming to define the sample rate?
  • Why do you need 3 IndexArray nodes to index 3 elements from the same array?
Best regards,
GerdW


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

Hey GerdW,

 

Thank you for your answer.

I am pretty new to LabVIEW and know not that much about it. I want to gather data and log\save it on the device.

 

How do I check the cpu load ?

I think I do not need to write to a file or shared variable or read it at 1 kHz i only want to save the whole data I get from my sensors.

previously I used a FIFO but had the same problem.

I will change the DDT wires.

I thought it will be easier and faster with the DAQ assistant. 

 

Best,

Draka

0 Kudos
Message 3 of 4
(753 Views)

Hi Draka,

 


@Draka wrote:

I thought it will be easier and faster with the DAQ assistant. 


Nope!

 

Read this!

 


@Draka wrote:

How do I check the cpu load ?


There's a RTGetCPULoads function…

Best regards,
GerdW


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