LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

state machine

Hi guys

 

can anybody help me with the attached code. I am want to allow my DAQ device to generate an output voltage at particular events. the idea is to read time, if between 6-8 do the task" generate analogue output voltage V03 if temp room is less than 20" if between 17-22 do the same. Simultaneously during the first two events i want to check if Time=Timefromlookup if so generate analogue output voltege V01 also to generate analogue output voltage V02 if tempout is less than 5. Besides those two events I still want to chek if Time=Timefromlookup and if tempout is less than 5.

 

Dont know if was clear enough. But please have a look in my code and please send me your sugestions asap.

 

OBS: As you can see I'm not so good in labview...

0 Kudos
Message 1 of 7
(3,193 Views)

Hi,

 

What do you want suggestions for? Could you highlight to us what problems you are having in your code so we know what to look at. Why are you using those while loops in the 'start' stat?

 

Thanks,

J

0 Kudos
Message 2 of 7
(3,165 Views)

To start thanks for asking about those while loops. There was no need for them. Having done that and other modifications as you will see in the attached file i still cant find get the task done in any of the states. I think that the state machine is fine, because it does jump to the corresponding state after comparing the time of the day. I can visualise that because I am using leds to find out in which state it is the execution is. So once in the right state I cant figure out if my DAQ is generating the output signals. I have added digital input module having connected the output from analogue output to it in order to realize if the i'm genarating voltage. I see the led indicator on the hardware flashing but on the labview leds nothing happens so i dont know how to verify if my analogue output is working fine.

 

Sorry, couldnt be more especific.

 

Looking forward to anybody's reply 

 

Thanks

0 Kudos
Message 3 of 7
(3,133 Views)
0 Kudos
Message 4 of 7
(3,132 Views)

Have you used highlight execution to watch the state transitions? It seems to got to the correct states. What DAQ hardware are you using for the outputs?

 

Regards,

J

0 Kudos
Message 5 of 7
(3,126 Views)
I am using cDAQ9172
0 Kudos
Message 6 of 7
(3,122 Views)
And what C Series modules?
0 Kudos
Message 7 of 7
(3,103 Views)