08-18-2011 11:00 AM
Ok,
You are getting the Error 74 because the TCP functionality isn't working properly at the moment, basically the TCP is timing out which is causing the Error 74.
I'll try and work out why the TCP is connection is failing, that should hopefully solve the problem.
Dom
PS network comms with cRIO's is in my experience a real b**** to get right first time!
08-18-2011 11:59 AM
I am getting some very wierd behaviour from my cRIO at the moment.
So I am really struggling to test the vi I sent you, sorry!
08-18-2011 08:38 PM
Hi Dom, that's ok! Thanks a lot for the help!
08-18-2011 08:49 PM - edited 08-18-2011 08:58 PM
Hi, If I want to provide only three options (three buttons) of sampling frequency to the users,is radio button a good choice to use?
08-19-2011 01:06 AM
Hi Gregor, I have just implemented a radio button control onto the computer.vi to allow for options of different sampling rate. So far its been running smoothly but can you please have a quick check to see if there are rooms for improvement? However, the problem still exists in which the cRIO.vi shuts down by itself at the start. Thanks!
08-19-2011 03:11 AM
The cRIO shutting down may be the result of your "Stop" button being of the wrong type,
Right click on your stop buttons, and select one of the "Latch when..." options.
Dom
08-19-2011 03:46 AM
Hi Again,
I keep forgetting you are controlling it from the PC, it may be that the "Stop" variable has a hangover in the network, or stored on the cRIO.
Try putting a case structure around the stop variable, wiring the "i" value into the "?" on the case structure, then changing the case structure so that on the 1st iteration you feed a constant, "F", into the stop control, but for all other values of "i" you feed in the network variable "Stop".
Do this on both loops, hopefully this will solve the issue.
Let me know.
08-19-2011 07:56 AM - edited 08-19-2011 07:57 AM
Sorry Dom, I dont really understand your instructions. How can i write an "i" value into the "?" on the case structure? And which stop variable do u want me to put the case structure around? There are three occasions where I have used a stop variable, two in cRIO.vi and one in the computer.vi
Is it possible for you to show me a screenshot? thanks!
08-19-2011 08:37 AM
Try this VI.
You can wire pretty much anything into the "?", AKA the selector terminal, you just have to define what to do for each possible case.
Dom
08-19-2011 08:38 AM
Thanks! But I cant open it coz i am using 2009 lol. Can u please down convert it again?