LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulation loop into a case structure ???

I have been working in a proyect related to Control design a simulation and I Have a problem, I used event structures for control Next, Previous and End buttons, this buttons react to change a tab control between its differents tabs.

 

the questions is: I can run a Loop Simulation into  a Case structure ? I checked all the issues related to event structures, but I don't know why that still give me an error.

 

event structure & tab control & case & simulation loop

Electrical Electronic Engineering
0 Kudos
Message 1 of 9
(3,967 Views)

Hello,

 

Yes... The Control and Simulation Loop works fine inside any structure of LabVIEW. Maybe to better help, you can try to attach the code to this thread. Also, it would help to know which version of LabVIEW you are using.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 9
(3,930 Views)

This is my vi Smiley Very Happy  V 8.6

Electrical Electronic Engineering
0 Kudos
Message 3 of 9
(3,925 Views)

I took off the simulation loop into case number 6 and it just run fine :S

Electrical Electronic Engineering
0 Kudos
Message 4 of 9
(3,917 Views)

Carlos,

 

Yes, I can see the broken arrow in my LV 8.6.1. Now, if you try to modify the simulation loop (like just dropping a constant inside the simulation loop and deleting afterwards), then I was able to run the simulation without problem.

 

Was this VI created in previous version of 8.6? If it was create in 8.6, then you probably need to install the 8.6.1 version of LabVIEW. We had several fixes in 8.6.1 and one those is

 

       128265     Broken Run Arrow with no Errors in Error List

 

Which explain how my 8.6.1 worked well after I modified the diagram in 8.6.1.

 

Hope this helps...

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 5 of 9
(3,887 Views)

thanks for the help. 😄 I will fix it

Electrical Electronic Engineering
0 Kudos
Message 6 of 9
(3,882 Views)

HI, again, I updated my version 8.6 to 2010 but still does not work 😞   I did what you said to me, but in 2010, I charge my program in LV2010, after show me a bunch of warnings, the programm appear, and it stll gave an error, I took off all inside in the simulation loop and I put a constant, and it worked ¡¡¡¡, it run slowly, but it worked ¡¡¡

 

that's why I think is problem of the loop simulation. ¡¡¡

 

I wanted to show a simulation into the program but I think I have to use COntrol Design ¡¡

 

 

Electrical Electronic Engineering
0 Kudos
Message 7 of 9
(3,864 Views)

i am gonna repeat all the program again into a vi from LV2010 I hope it work

Electrical Electronic Engineering
0 Kudos
Message 8 of 9
(3,859 Views)

Hey carlos,

 

Actually, in 2010 we have another issue with the LabVIEW compiler and we are running into another issue. I actually created an Corrective Action Request (CAR) on that. The problem is related to use the complex datatype of the transfer function and wire to the shift register and, afterwards, wire inside the Simulation Loop.

 

However, I was looking on your application and I think you do not need to use this complex infrastructure to create your example. In attachment you can see an attempt to remove most of the complicated code. Please let me know if that would work for you.

 

 

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 9 of 9
(3,813 Views)