11-03-2009 06:07 AM
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...
11-03-2009 07:54 AM
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
11-04-2009 07:38 AM
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
11-04-2009 07:39 AM
The main file is:
11-04-2009 07:48 AM
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
11-04-2009 07:51 AM
11-04-2009 08:18 AM