LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data saving in host

I have some experience with LabView but none with this hardware.i am new using CRIO system(9004).how i can save the data using crio any example for this . 

0 Kudos
Message 1 of 13
(3,358 Views)

There's a CompactRIO Developer's Guide here.


GCentral
0 Kudos
Message 2 of 13
(3,341 Views)

any example for data saving in host

0 Kudos
Message 3 of 13
(3,333 Views)

LabVIEW also comes with ready-to-use example projects explaining data communication between host PC and cRIO target!

Best regards,
GerdW


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

See Section 6 for an overview and description of the Sample codes.


GCentral
0 Kudos
Message 5 of 13
(3,328 Views)

You need to use two applications: one on your cRIO and one on your host/PC.  You can send data between the applications using TCP/IP functions (look up the STM library) or Network Streams.  So using this communication, you send messages to the host telling it to save the data being sent.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 13
(3,297 Views)
i am using this example to read data from CRIO-9004.how i can datalog from this example. i need to save data for 100hz(sampling data)in the format of tdms or lvm. otherwise guide me for any example to datalog.
0 Kudos
Message 7 of 13
(3,286 Views)

Hi maintenanace,

 

do you really want a "datalog" file or just a logfile of your data (which can be something completely different)?

 

LabVIEW comes with a huge library of example VIs, there are sure examples explaining how to use file functions…

Best regards,
GerdW


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

hi there,

as crossrulez said, you have to have a mechanism of transferring data to your PC,

you have several options:

1. build your own TCP/UDP

2. Network Streams

3. Network Shared Variables

http://zone.ni.com/reference/en-XX/help/371361N-01/lvconcepts/data_comm/

 

afterwards you can write the data to TDMS

  * http://www.ni.com/tutorial/9334/en/

  * http://www.ni.com/white-paper/3727/en/

or .csv-/text-file

 

have a look in the examples coming with labview (search for TDMS or Network Streams)

 

with SSP you have online training which has two courses on RT

LabVIEW Real-Time 1
The LabVIEW Real-Time 1 course delivers hands-on training for prototyping deterministic measurement and control systems. At the end of the course, you will be able to design, develop, and prototype a real-time application that handles communication between the RT target and a host computer using NI recommended methods and LabVIEW Real-Time.
 
 
LabVIEW Real-Time 2
The LabVIEW Real-Time 2: Architecting Embedded Systems course delivers hands-on training for designing scalable, maintainable, and reliable embedded applications. At the end of the course, you will be able to translate your embedded system requirements into a scalable software architecture, choose appropriate methods for inter-process and network-based communication, design your real-time application for reliability, and efficiently deploy and replicate your real-time systems.

If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 9 of 13
(3,274 Views)

Hi GerdW

Thank you for your reply.

i need real data log from the crio

 

0 Kudos
Message 10 of 13
(3,252 Views)