LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exe file embed with vi file

Hi everyone,
 
recently i copied a exe file over to another computer laptop using different dc power supply source to get current consumption data but i wasn't able to run the exe file, turned out to be some 'timeout' error.
 
What should i do?
0 Kudos
Message 1 of 6
(3,213 Views)
If you get an error, you should really post the error code you get. That helps enormously when trying to determine what is wrong. Is the power supply connected to the laptop with serial, gpib, ethernet, USB? Have you installed drivers such as NI-GPIB and NI-VISA? Drivers are not included in the exe. When you create an exe, it's best to create an installer and include drivers with that. LabVIEW 8.x app builder makes that simple.
0 Kudos
Message 2 of 6
(3,202 Views)
Hi Dennis,
 
basically the picture here (a.jpg) features the whole block diagram but when i click on highlight execution and run,
what i see becomes like this (b.jpg) which results in no waveform and data aquired in the text and graph.
 
The power supply is connected to the laptop using GPIB-USB-B cable interface, NI GPIB and NI-VISA are installed as well the
power supply's drivers. Explore GPIB told me i was able to scan for 'that' instrument and retrieve its primary address.
 
Thank you for your reply and let me know what else i can do to overcome this.
Download All
0 Kudos
Message 3 of 6
(3,193 Views)

That's not an error. Your event structure is just executing the timeout event. The event structure includes this as the only event when you create a new one on the block diagram. The timeout event will be called whenever the time value (in msec) you have wired to the in;ut (the little hourglass) has elapsed and no user event has occured. Since you have no code in this event, why don't you just delete it?

If you have other problems, it's going to be hard to determine what's wrong without the actual code. You've got a stacked sequence structure and inside of that is a while loop. The sequence structure is not a very good way to program anything and a while loop inside an event structure does not have much to recomend it either.

When you run the VI in normal mode, do you get any errors? Since I don't see any error indicators, I hope you have automatic error dialogs turned on.

0 Kudos
Message 4 of 6
(3,179 Views)

Hi Dennis,

the problem is I have made connection from the power supply to a device which i want to test on for getting my current consumption data every second. But i'm not sure why when i click on highlight execution -> run, instead of running the normal process, it triggers the Timeout Event instead.

I have select the right GPIB connected device (there's only one anyway...)

Now what?

Thank you for your prompt reply.

0 Kudos
Message 5 of 6
(3,155 Views)
You really need to understand the basics of the event structure. As I explained, the timeout event is there to execute code whenever there is no user event for the time period you specify. You have a value of 10 wired to the timeout. This means that the timeout event gets called every 10 msec. When you don't have execution highlight turned on, this gets called as well but because you don't have any functions actually inside the timeout event, nothing happens. When you turn on execution highlighting though, 10 msec after you hit the run button, the timeout will occur and you step into that event. This is normal and expected. Since you don't have any code in the timeout event, you can delete it, as I already said. The other option is to wire a -1 to the timeout vale which means the event structure will never timeout. Having a timeout event with no code though, is just kind of silly.
0 Kudos
Message 6 of 6
(3,152 Views)