05-14-2020 02:38 AM
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
05-14-2020 03:27 AM
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
05-14-2020 04:52 AM
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.
05-14-2020 05:54 AM
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.
05-14-2020 11:38 AM - edited 05-14-2020 11:40 AM
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.