06-13-2009, 01:40 PM
i spent some time this afternoon tyring to set up a triggered event that plays a wav file. i would like the wav file to play when the clothes dryer is finished running. i got all the aspects of the triggered event to work fine, except that it won't play the wav file. here is my code
the wav file is located on the master server in the directory as programmed. to test this, i built a command button with the same PlayWAV code and when i click the command button on the master server iv screen the wav file can be heard.
so, i can play the wav file when activating it via the iv, but not when it is inside a triggered event. my suspicion is that i may have a network rights issue? i have triple checked that i am logged in as administrator with full rights. what am i missing? why won't the wav file play within the triggered event? :confused:
Code:
System::Equals
P1=$(ELK.Output054)
P2=True
Devices::FieldWrite
P1=KensVariables.Dryer_Operating
P2=True
End
System::Equals
P1=$(ELK.Output054)
P2=False
Devices::FieldWrite
P1=ELK.Output016
P2=True
Devices::FieldWrite
P1=KensVariables.Dryer_Operating
P2=False
System::PlayWAV
P1=C:\Users\Public\Music\The Clothes are Dry.wav
P2=False
Devices::FieldWrite
P1=ELK.Output016
P2=False
End
the wav file is located on the master server in the directory as programmed. to test this, i built a command button with the same PlayWAV code and when i click the command button on the master server iv screen the wav file can be heard.
so, i can play the wav file when activating it via the iv, but not when it is inside a triggered event. my suspicion is that i may have a network rights issue? i have triple checked that i am logged in as administrator with full rights. what am i missing? why won't the wav file play within the triggered event? :confused: