Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does a vi not start after restart automatically, but manually it does?

Hi,

 

I have a problem regarding starting a vi after restart automatically.

 

Here is the situation: I'm using WinXP and LabView 8.5 and I want a real Time Measurement of 2 different type of sensors. One type is connected by COM ports. Here I have no problem at all. I can read the data and the corresponding VI runs after restart instantly, even when the other set of sensors is connected. 

The second type is connected via a microbox (disynet) by usb to the computer. If only this type is connected everything is fine, in the other case I'm not able to access them, even when I don't run a vi, which communicates with the first type. But after a couple of minutes I can start both vi's by hand and both sensors can be readout.

 

My first thought was, that there is kind of a timing problem, so I introduced some time offset before one of the vi' runs. Unfortunately this didn't work. I also switched the sequence (including time offsets) with no effect. Then I merged the two vi's in one (with and without time offset), also no effect. I still cannot access the second type of sensors, while the first one runs fine in all cases.

 

Has anybody an idea?

 

Thanks,

Stephan 

0 Kudos
Message 1 of 3
(3,471 Views)

Hi Stephan,

 

could you please explain a little bit more detailed what you would like to achieve? What does Restart mean? Restart of LV or the whole system? When can you access the USB sensor? How do you communicate with the sensors?

 

Thanks,

 

Blase 

0 Kudos
Message 2 of 3
(3,455 Views)

Hi Blase,

 

I mean a pc restart and I can run the VI after a couple of minutes after the restart with no problem, but using a time offset doesn't work. Since the Sensorsystem is from a company including the LLB, I cannot really say how I connect to the Sensor.. I have to initialize it, the I enable the realtime and obtain the data. But this is all done by SubVi's I cannot open.

 

But I think I have solved in the meantime.. it is not very beautiful, but it works. I wrote another vi, which calls the vi for the sensors and does this as long as i cannot connect it. When I'm finally able to.. the vi runs and I'm good. If anyone has a better way of doing so.. please let me know.

 

Thanks,

Stephan 

0 Kudos
Message 3 of 3
(3,445 Views)