04-04-2014 05:13 AM - edited 04-04-2014 05:14 AM
I have seen similar problems with the connection between pc and cRIO but this problem is still a little different.
Yesterday i made a simple program wich reads date into an inputmodule on the cRIO and transfers them to the pc (with the use of a network stream and shared variables). The pictures of the network stream are below
I want to add that this program worked yesterday. I also did add a shared variable and this also worked yesterday.
Today the program worked until i took a small break.
Specs:
a. Labview 2012 (service pack 1)
b. NI cRIO 9073
c. NI inputmodule NI 9021
d. Windows 7 Service Pack 1
Here is what i did.
Program with shared variables:
1. Connect to cRIO (RMB on overview in LabView)
2. Press run on program in cRIO (program downloads to cRIO, connection is still working)
3. Press run on program on pc (connection is immediately lost)
4. Press connect to cRIO in overview (can't make new connection)
5. To recreate problem: unpower cRIO and repower
Program with network streaming
1. Connect to cRIO (RMB in overview)
2. Press run on program in cRIO (program downloads and start running)
3. Press run on program on pc (starts running and date is transfered: i can read date from the waveform chart)
4. Stops program on pc (connection is immediately lost)
5. Press connect to cRIO in overview (can't make new connection)
6. To recreate problem: unpower cRIO and repower
What i tried to solve:
a. Restart computer
b. Format cRIO
c. Reinstall software on cRIO (real time 12.0 february 2013)
d. IP-reset
e. un and repower cRIO
Niels
04-04-2014 06:05 AM
Niels,
May be others have better vision but I cannot make out any details in the picture you attached. Any chance you could attach better resolution screenshots?
04-04-2014 06:13 AM
I want to but i am currently at another location. The pictures aren't that important. They just show the layout of the overview and the two vi's. I also used the first picture to show that i can make a connection with the cRIO in the beginning (light green light on name of cRIO).
Regards and sorry for the bad quality,
Niels
04-04-2014 06:26 AM
Can you try making an application (EXE) from the My Computer vi to see if it will work better - just a thought man.
04-04-2014 05:05 PM
Still no change.
It is just very strang that one moment it worked and stopped working without changing anything in the vi's or cRIO.
Thanks for the suggestion though
Niels
04-06-2014 09:33 AM
have you tried to make and run any sample vi (any simple one) without any share variable usage. if there is still a problem you facing in connection with crio this matter, but if the sample vi is running without any connection loss then there may be issues with share vairable.
04-06-2014 09:44 AM
i have tried the use of a network stream after the shared variable stopped working. At first the network stream seems to work but when i stop and try to run the networkstream-vi again, the same problem pops up as the shared variable...
Again thanks for the input!
Niels
04-06-2014 10:48 AM
04-06-2014 12:00 PM
Hey,
Thanks for the link! The problem is solved indeed when i restart the system with network streaming.
The problem remains with shared variables. I want to create a program where i sample audio. In this case it is easier to work with a shared variable because it works with a buffer.
Any ideas what can be wrong with the shared variables? (note again: the use of shared variables worked in the beginning but stopped working with the blink of an eye)
Thanks!
Niels
04-06-2014 01:00 PM