04-11-2016 11:11 AM
Greetings,
I have a labVIEW VI that I write instructions into a text file on the myRIO and then the myRIO performs those instructions.
I have seen tutorials that start the myRIO as a standalone application. But I require it to only become standalone once the user has written information to the text file.
Currently the user writes instructions, then clicks send to myRIO which then performs all the tasks even though the USB is still attached. Instead after the user sets the instuctions, when they click send instructions, a message should then say unplug the USB from myRIO(this could be set to 10 seconds or something), then the myRIO performs the tasks as a standalone application.
My project is the NI starter kit using the myRIO. I write instructions to the text file then the robot performs the tasks. The user never interferes with the tasks the robot is doing, therefore instructions are only sent once.
Please note I have a front panel with displays, I dont know how these displays will still work?
Thank you in advance for your help.
Solved! Go to Solution.
04-14-2016 03:54 AM
Hi,
From what you have said I think the exact way you want to do it isn't quite possible however you should be able achieve the same thing by doing something like the following:
Running a startup executable on the myRIO would allow it to run separate to the computer. You could then open a communication to the myRIO from a separate VI on the PC to send the instructions and then close the communication to allow you to unplug the myRIO
These links might help with some further reading on startup executables on Real-Time targets:
http://zone.ni.com/reference/en-XX/help/370622N-01/lvrthowto/rt_building_rt_app/
http://digital.ni.com/public.nsf/allkb/E2F8C8D4270CCC62862574440054E894?OpenDocument
Best regards,