LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to a file at different frequency?

Solved!
Go to solution

Hello:

 

I want to represent in a waveform chart two variables every 200 ms. That is what I'm doing in the attached vi. But I also want to write on a measurement file this two variables at a variable rate (user can change it). Where or how can I put my "Write to measurement file"?

 

Please, see the attached vi.

0 Kudos
Message 1 of 5
(3,101 Views)

Hi damos,

 

without being able to look at your VI I would suggest two ways:

- make a Case structure to call the Write-VI every n-th iteration

- put the Write-Vi in a parallel loop

Best regards,
GerdW


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

Thanks GerdW for your answer but I don't know how can I do it:

 

1) With Case structure, I don't know what to do with the output tunnel on the false case because out of the while loop I have a tdms file viewer.

 

2) With parallel loop, it doesn't transmit the data from one loop to another.

 

The original vi is this. Where or how can I put my "Write to measurement file" to write variables at different rate of main timed loop (200 ms) ?

 

I attached VI again for previous versions of labview. Thanks.

 

 

Labview.JPG

 

 

0 Kudos
Message 3 of 5
(3,057 Views)
Solution
Accepted by topic author damos

Hi damos,

 

"With Case structure, I don't know what to do with the output tunnel on the false case"

In that case, I would suggest going through examples provided with LabVIEW or to read the LabVIEWBasics-course on the NI website...

 

Admin note: Broken Image has been removed.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(3,052 Views)

Thanks a lot, GerdW. With your solution it works perferctly. I hadn't thought with shift registers.

0 Kudos
Message 5 of 5
(3,045 Views)