04-24-2013 02:21 AM
i've read somewhere in the forum about the VI properties.
http://zone.ni.com/reference/en-XX/help/371361H-01/lvdialog/execution/
should i change this for signal layer.vo & profibus communication handler.vi to make it runs always?
04-24-2013 03:00 AM
It seems that you are using some relative path.
Make sure that the excel files are placed in the same relative path to the exe file, as it is now for the vi file.
We can't see from any of the pictures how your files are organized on the harddisc.
There is nothing in the vi. properties that can help you, the onely thing is getting your path to your files correct.
04-24-2013 04:48 AM
hi,
there's no problem for me to read the excel file from the vi.
the reason it doesnt work is the configuration vi runs at the same time with the panel.vi
1) Signal Layer.vi is actually reads the configuration from excel files and this needs to start first.
2) After that, profibus communication handler.vi needs to be started. If this vi starts at the same time with signal layer.vi, it will fail because it unable to get the configuration info which done by signal layer.vi.
3) Then after both of these files started, the Panel.vi should be started.
is there anyway that i could run the vi in sequence like this with a stand alone application.
04-24-2013 07:41 AM
Okay, so you have 3 vi's that has to start in a sequence, one after the other.
Are there any while-loops in these vi's ?
04-24-2013 08:09 PM
Yes..
04-25-2013 04:15 AM
Hmmm if you want help you need to reply with a lot more words than just yes.
These 3 vi's, are they sub vi's in top/main vi ?
How are they talking together ?
Rigth now, the only solution I have is to have a start-up vi that launch each of these vi's by reference in the right order.
By using the by reference method, you can start/run a vi and continue without waiting in the sub-vi to finish.
Could you post your code or give a long detailed description on your application and how you have designed it.
04-25-2013 08:01 PM
Hi dkfire,
here is the situation:
1) Signal Layer.vi is actually reads the configuration from excel files and this needs to start first.
2) After that, profibus communication handler.vi needs to be started. If this vi starts at the same time with signal layer.vi, it will fail because it unable to get the configuration info which done by signal layer.vi.
3) Then after both of these files started, with delay after 30s the Panel.vi should be started.
is there anyway that i could allow this sequence happens with exe?
04-26-2013 02:48 AM
hi,
Is there a loop in Signal Layer.vi? If there is no loop, then the Signal Layer.vi can just connect to the profibus communication handler.vi using the error cluster. But if Signal Layer.vi has loop, i.e it is running by itself, then you need to have a mechanism to tell Profibus communication handler.vi, that it can start now. Use things like Generate Occurrence in the Signal Layer.vi when it has read the configuration from excel file. Then in Profibus communication handler.vi., you will put a Wait on Occurrence so that it will only start when Signal Layer.vi has generated the occurrence. There are other ways to synchronize, this is just one way. Just my 2 cents
Rando