LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1073676294 Warning Pop Up in .EXE not Development

Hi everyone,
 
I have a subvi which generates the warning 1073676294.
When I run the main vi in development mode, everything is ok (a warning is made in the error cluster, but the program continues).
However, when I build the application, the warning generates a pop-up window (and hence halts the program). I am then required to press Continue or Stop.
I don't want this pop-up to occur in the .exe application.
 
Can anyone please help me out.
 
Thank you,
Dean.
0 Kudos
Message 1 of 7
(3,389 Views)

are you running the exe on the computer you used to develop the application?  are you using report generator?

0 Kudos
Message 2 of 7
(3,380 Views)
Hi Elsa,

Thank you for your reply. Yes, I am running the exe on the same computer that I developed the application in.
I am not using report generator.

I have attached the 'Get angle from Motor Controller' vi. It generates the warning after the read (in the while loop).

Do you know how I can switch off a particular warning message from interrupting the operation of an executable?

Dean.
0 Kudos
Message 3 of 7
(3,374 Views)

i'm not sure how to use VISA, but i found these...

http://digital.ni.com/public.nsf/allkb/ee2a6f7f7f06105486256f8d005c1d24

http://digital.ni.com/public.nsf/allkb/C96C84C922DC3F978625632500482F78

you might want to increase the byte count or simple check the error number to ignore this error (unbundle the error and check the code part against 1073676294, simply check the code part and see if it's negative (one of the article says error are always negative, so this isn't an error))

hope this helps!

Elsa

0 Kudos
Message 4 of 7
(3,369 Views)
Hi just to follow up,

Is there a general way to avoid warnings from popping up when an application is running (as distinct from when you are running the code in development mode?)

In my case, why would the warning code be popping up in exe mode and not in development?

Thanks a plenty,

0 Kudos
Message 5 of 7
(3,353 Views)
Thanks for the suggestions Elsa.
Unfortunately in my program, I can't increase the byte count.
What I need to do in my program is read from VISA the bytes of a fractional number. The fractional number is an angle with 1 decimal place.
 
So the value can be either, for example,
 
0.6
1.8
66.1
340.7
 
So if 1.8 is on the buffer, then when i read from VISA 1 byte at a time i will get
 
'8', then '.', then '1'. The software does not know how many bytes there will be on the buffer.
 
Also if I read say anything else than 1 byte in the vi, then the vi returns an error (obviously worse than returning a WARNING).
 
I don't care that there is a warning from this vi. I just don't want my executable from creating a pop up everytime the WARNING (note not an error) is generated.
I have never had this problem before with executables. I repeat that the pop up doesn't occur when i run the exe file.
 
I hope someone can lend some assistance.
Thank you.
0 Kudos
Message 6 of 7
(3,351 Views)

I'm not sure if you can set up the VI to ignore warnings in development or exe...

just to be save, you might want to check the error against 0 and programmically ignore all errors > 0 (warnings)
I was testing my application a few days ago, and the program ran a 4 hour test, a fatal error came up and i lost all my data!  i'm trying to reproduce the fatal error and have no luck... so i think LabVIEW is kind of random sometimes... so just to be save, do anything you can to avoid the program crashing and losing data...

0 Kudos
Message 7 of 7
(3,344 Views)