LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Efficient way of Building waveform from ethercat single read data

Good Morning,

 

I'm new to labview. I can't figure out whats the best way for memory efficiency of building a waveform which is then displayed (using a notifier) and logged (using a queue). I'm getting single read from ethercat slave in a loop. You can see in the attached file what I'm trying to do ( I know it is not a good way but as I said I can't figure how to do it).

 

Thank you in advance

0 Kudos
Message 1 of 5
(2,434 Views)

Hi, You can go to the front panel, right click on mouse button , under "graph" menu, select "waveform chart." to drag onto your front panel vi. Then doucle click on the icon to link to control panel and join your input signal to the chart. Run your vi to test it.

 

 To log the file: A reply to one of the member:

Hi, You need to insert the vi "write to measurement file" and link it to your signal for logging. In your control panel, look under file i/o menu for the file. After that, drag the icon into your control loop. Link up your signal to be view or log into the signal input of the "write to measurement file"icon. Create a control button to the enable input of the icon. Double click on the icon to set the log file type and destination of the logging file. Compile your whole vi into the exe file. Run exe and test it out.

 

For more info, search for TDMS in labview help or look for the below vi. 

TDMS Express Write Data (Time and Frequency Domain) VI: labview\examples\File IO\TDMS\Express Read and Write

0 Kudos
Message 2 of 5
(2,401 Views)

Hi, 

 

thank you for fast response. Maybe I didn't explain myself good. All you write I already know. What I would like to know is how to build and array/waveform which keeps increasing in each iteration loop. From each iteration loop I get one "double value" which I need to insert into the array/waveform.

0 Kudos
Message 3 of 5
(2,377 Views)

Hi,

 

  You can put everything inside the control and simulation loop. This loop is found under the control and simulation palette, under the simulation sub-palette.

0 Kudos
Message 4 of 5
(2,359 Views)

pinftv_0-1589474208382.png

pinftv_0-1589474440871.png

 

I can't find the loop you mentioned. Here is my best try I found it is good for saving into a TDMS file. For displaying probably I will need to append point to a waveform of fixed size in the host computer as now it is a waveform of a single point.

0 Kudos
Message 5 of 5
(2,337 Views)