LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview

I use the example "VI server" VIs shipped with Labview 6i. I run the server and the client VIs on different computers on a local net. After a number of readouts (typically in the order of ~1000), the client hangs. Sometimes I can reset it by opening the block diagram, sometimes it simply hangs till I stop the VI or kill labview.
I have Linux kernel 2.2 (actually SuSE 6.4).
I complained about the same problem around 3 years ago concerning labview 5.0.
0 Kudos
Message 1 of 6
(3,365 Views)
Cortina,

I ran the exact examples you discussed in your post for over one hour. I was not able to reproduce your issue. The only "freezing" issue I had happened when the screen saver started and stopped. During this time, there was a short pause while the processor took care of the screen saver.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 6
(3,364 Views)
A problem in the VI server is that it doesn't handle interruptions on the network very gracefully. In fact it handles them rather poorly. Doing remote calls across a network takes a little more work than is shown in the example.

The client-side of the link only handles certain network interruptions correctly. Specifically, if the network is down when you try and open the connection, the code catches that and the call terminates gracefully, likewise if the connection goes bad between when you open it and you attempt to use the connection, all is well. The problem is when the network goes down in the middle of the remote call. The function will never timeout--in fact the last time I talked to NI about this bug (and it IS a bug) they asserted that there is no wa
y to detect the timeout. Funny, every other network-enabled package on the market can detect this kind of failure, but not LabVIEW. (sorry for the mini-rant)

To work around this limitation in LabVIEW's networking, you have to create an acquisition loop that runs independently from the rest of your program and a watchdog process. The idea is that when the watchdog sees that the acquisition loop has hung for some user-defined time 1 sec, 2 sec, whatever; the watchdog aborts the acquisition VI and then relaunches it. To trigger the watchdog, I take the loop counter for the acquisition loop and pass it to a global. If the watchdog sees this global stop changing for the timeout period it does it's thing.

If you need specifics, feel free to contact me directly...

Mike...
mporter@arielcorp.com

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 6
(3,364 Views)
Ich habe ein Labview Programm mit Version 6.i - Studentenversion geschrieben, daß analoge Daten
erfassen kann und dabei das Subvi "AI Acquire Waveform.vi" benutzt. Nun wurde
auf meinem Entwicklungsrechner Labview Version 7.0 - Studentenversion installiert.
Wenn damit jetzt mein Program öffnen möchte, dann findet Labview das Subvi "AI Acquire Waveform.vi"
nicht mehr. Woran kann das liegen ?
Ich möchte mit dem Programm meinen Analog/Digital-Wandler "NI cRIO-9215" betreiben. Gibt es
beim Betrieb mit Labview Version 7.0 - Studentenversion wichtige Einzelheiten zu beachten.
Ich würde mich sehr über Hilfe freuen.


I´ve created a analog data acquisition programm with Labview version 6.i - student version.
This program uses subvi "AI Acquire Waveform.vi". Now the labview installed on my devellopment
platform has been changed from version 6.i to 7.0 . I can still open my program with this version
but the Subvi "AI Acquire Waveform.vi" can not be found. Does anyone know why ?

I want to run a analog/digital-converter "NI cRIO-9215" with my program. Are there important details about
using this with labview 7.0 - student version ?
Many thanks for helping me.
0 Kudos
Message 4 of 6
(3,340 Views)
Ich habe ein Labview Programm mit Version 6.i - Studentenversion geschrieben, daß analoge Daten
erfassen kann und dabei das Subvi "AI Acquire Waveform.vi" benutzt. Nun wurde
auf meinem Entwicklungsrechner Labview Version 7.0 - Studentenversion installiert.
Wenn damit jetzt mein Program öffnen möchte, dann findet Labview das Subvi "AI Acquire Waveform.vi"
nicht mehr. Woran kann das liegen ?
Ich möchte mit dem Programm meinen Analog/Digital-Wandler "NI cRIO-9215" betreiben. Gibt es
beim Betrieb mit Labview Version 7.0 - Studentenversion wichtige Einzelheiten zu beachten.
Ich würde mich sehr über Hilfe freuen.


I´ve created a analog data acquisition programm with Labview version 6.i - student version.
This program uses subvi "AI Acquire Waveform.vi". Now the labview installed on my devellopment
platform has been changed from version 6.i to 7.0 . I can still open my program with this version
but the Subvi "AI Acquire Waveform.vi" can not be found. Does anyone know why ?

I want to run a analog/digital-converter "NI cRIO-9215" with my program. Are there important details about
using this with labview 7.0 - student version ?
Many thanks for helping me.
0 Kudos
Message 5 of 6
(3,341 Views)
Hi jhrioua,

Please create a new thread for your issue instead of posting it to a non relevant thread. Since your question is related to data acquisition, please post the question in the Multifunction DAQ forum.
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 6 of 6
(3,305 Views)