ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure

Solved!
Go to solution
I am having problemwith triggering the case structure. I have built a smal ldemo to show my problem. The write to spreadsheet is active no matter if the value is true or false. I want to activate the results beeing written to a spreadsheet by a button. All this is inside a simulation loop. Pleasetake a lookat it.i Have attached a small demo of the problem.
0 Kudos
Message 1 of 14
(5,109 Views)

Hi Spatpatia,

 

this remembers me of a thread discussed a week ago...

 

In a simulation loop controls will not work as usual! The simulation is like a sandbox running their own business, you have to use other programming schemes to get your desired result...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 14
(5,097 Views)
I suggest a while loop and an event structure with "boolean", "Value change" to run you write to spreadsheet code. (this is outside of your simulation loop)
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 3 of 14
(5,089 Views)

Thatlink didnt help me much i am afraid.Okey what other loopscan i useto be abel to use the memory function?

And i have had servelsimularproblems with the case structure not working in other surcomstances as well where the true and false function doesnt work. How come?

0 Kudos
Message 4 of 14
(5,083 Views)
it seems i can use the memory function other then in simulastion loop
0 Kudos
Message 5 of 14
(5,083 Views)
Harold could u make that example for me? i am new with LAbview so i dont rem every function and word in it.
0 Kudos
Message 6 of 14
(5,081 Views)

hope this helps out a bit:

 

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Download All
Message 7 of 14
(5,074 Views)
Sorry to ask this silly question but howdoes it work and how is it built up. I havent come across of this path symbol before.
0 Kudos
Message 8 of 14
(5,066 Views)
I is under modern - string and path
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 9 of 14
(5,060 Views)

Thank found it=)!

 

Could u take a look at this and see if igot this right?

I haven testedit outyetbut willthe other controls insidethe simulastionloopnot work properly? Should i use a whileloop insead?

This is a system that measures thevoltagefrom a presure sensur and a speedo meter. 

0 Kudos
Message 10 of 14
(5,048 Views)