LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving data straight to host computer, without using FPGA

Hello all,

I am working with NI cRio 9076 with following chassis: NI 9234 and NI9263. The program I am doing is very simple. I am trying to generate chirp signal (50 Hz sampled) for 20 second. I control this by while loop and elapsed clock. At same time in same while loop I am trying to measure by using accelerometer.

I have the following questions and problems:

  1. How can I storage the chirp signal samples in vector (straight to host computer, not via FPGA) so I can use it in matlab (in future should be possible to transfer data “automatically” from labview to matlab)?
  2. How can I set the sample rate of input data (accelerometer) and starting accelerometer graph time axis start as the loop start?
  3. How can I storage the accelerometer data as same as in 1. question?
Download All
0 Kudos
Message 1 of 4
(2,351 Views)

Hi Fin,

 

1. You need to transfer data to your host PC using any kind of network communication. LabVIEW comes with example projects explaining how to do this…

2. You are using the ScanEngine. The samplerate of the ScanEngine is set in the project. (Usual sample rates are in the range of less than 500Hz.)

3. After transferring data to host PC you can use any file operation you like (spreadsheets, TDMS, LVM, data plugins…)!

 

On your images:

Use AutoCleanup more often. No need for hidden wires and right-to-left wiring: read the StyleGuide!

Best regards,
GerdW


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

Thank you for fast answering!

I am quite new with NI prducts and labview.

1. could you please send me the link of example.

2. About the scan engine: I am not sure what you mean by scan engine. It is in crio propeties. Anyway I want to specify that one particular input channel sample with sample rate I decide. Is it possible and how?

3. When I drive the program the input start running for 30 second. Graph’s time axis show randomly. How can I integrate loop time (0à30) into graph?

 

regards,

Fin

0 Kudos
Message 3 of 4
(2,311 Views)

Hi Fin,

 

1. Edit menu -> new… Create a RT project and you get a dialog to choose the communication style. Select one with a PC host… (Which LabVIEW version do you use?)

2. Read the basics on cRIO programming to learn about the ScanEngine. You only can set a sample rate for the whole scan engine…

3. How do you want to "integrate a loop into a graph"??? Loops are used in the block diagram, graphs on the front panel…

 

Btw. your cRIO runs "headless" without a monitor. How does it display any UI at all?

Best regards,
GerdW


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