LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview code error in Scan Engine mode

When interfacing the NI cRIO 9049 with C Series Thermocouple 9213 , please kindly see the lab view code and error screenshot in attached word file ,

yash99_1-1626400656734.png

 

Labview version 2017 - 17.0 development system 

yash99_0-1626400635810.png

 

Pls see attached word file for details.

 

Is it possible to provide lab view .vi file in scan engine mode and fpga for data logging ? since it is taken from one of the NI websites.

 

Pls kindly help on this , it is quite urgent.

 

Tks a lot.

0 Kudos
Message 1 of 16
(4,032 Views)

Hi,

I am recently connecting 9049 cRIO to 9213 Thermocouple C series module,

The aim is to do data logging in scan engine mode.

Please refer to the Lab View code screenshot below ;

When Case Structure False;

code_snippet.png

Question 1 ) How should the LabVIEW code be when case structure TRUE ? What should be the logic ?

Please refer to error screenshot ;

error_screenshot.png

I am using LabVIEW 2017 Version 17 .

Question 2)Please help resolve error ?

Question 3)Since this is taken from NI Website is it possible to provide LabVIEW .vi file for data logging in Scan Engine mode and FPGA Mode?

 

Please kindly help me it will be of great help. It is quite urgent.

We could discuss further once you get back to me.

Looking forward to hear from you soon.

Thanks a lot.

 

 

 

 

0 Kudos
Message 2 of 16
(4,028 Views)

Hi yash,

 

no need to start two threads for the same topic!

 


@yash99 wrote:

Question 1 ) How should the LabVIEW code be when case structure TRUE ? What should be the logic ?

Question 2)Please help resolve error ?

Question 3)Since this is taken from NI Website is it possible to provide LabVIEW .vi file for data logging in Scan Engine mode and FPGA Mode?


  1. What should happen when there is TimeOut indicated by that SharedVariable? Once you can answer that question it becomes very clear what you need to implement in TRUE case…
  2. Where does this error occur?
  3. LabVIEW comes with a huge example library and with a lot of example projects. Your question is covered in those examples. Did you learn from all those examples?

Why do you need a (Network)SharedVariable to transfer data between those two loops?

Why do you need a TimedWhileLoop to read thermocouple values?

What's the point in reading the thermocouples each 1000ms, but waiting for only 100ms at the consumer loop?

What's the point of that ReshapeArray operation? Is a simple BuildArray to complicated?

Best regards,
GerdW


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

Hi,

 

Thank you very much for advice and help , really appreciate it !

 

Thanks a lot !

 

 

 

0 Kudos
Message 4 of 16
(3,938 Views)

Hi I am getting error when i run the code below :

code_snippet.png

please kindly help me on this quite urgent.

 

 

error_screenshot_2.pngerror_screenshot_1.png

 

Thanks a lot !

0 Kudos
Message 5 of 16
(3,922 Views)

Hi yash,

 

why don't you attach your code when there is an error within?

Why do we get just some images? We cannot run/edit/debug images with LabVIEW!

 


@yash99 wrote:

error_screenshot_2.png


How is this error related to your cRIO target?

Why is there a path to file on your Windows host computer when the VI should be run on your RIO target?

What is this "TDM Importer"? (I only know of the TDMS import add-on for Excel…)

Where does that error occur? Which function in your code does result in this error?

Why don't you use AutoCleanup before posting images of code?

Best regards,
GerdW


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

When I click to see the TDMS File , this error occurs. the tdms file is on desktop, but wn i tried putting it under the cRIO path same error occurs while seeing tdms file.   see the red cross.

I used this code to log data into tdms file.

yash99_0-1626680568320.pngyash99_1-1626680635502.png

ls kindly help , it is urgent.

Thanks a lot !

0 Kudos
Message 7 of 16
(3,910 Views)

yash99_1-1626680793766.pngyash99_2-1626680811666.png

yash99_3-1626680882010.png

code name : test1.vi

tdms file b.tdms in file path to do data logging

0 Kudos
Message 8 of 16
(3,908 Views)

Hi yash,

 


@yash99 wrote:

the tdms file is on desktop, but wn i tried putting it under the cRIO path same error occurs while seeing tdms file.   see the red cross.


A cRIO is a computer on its own: it cannot access files on your Windows host computer, neither on desktop nor any other file path of the host computers harddrive!

 

You need to transfer the file to your cRIO first before trying to read it with cRIO code!

 

This is explained in the cRIO/Realtime basics, in the examples coming with LabVIEW and in all those example projects coming with Realtime module…

Best regards,
GerdW


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

Hi,

 

thanks a lot , any idea how to transfer file to cRIO  ?

pls kindly help me , quite urgent.

 

Tks a lot.

0 Kudos
Message 10 of 16
(3,903 Views)