Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 wont start in rtexe, but runs just fine in Debug Mode

Hi Guys,

first of all sorry for my bad english!

 

I have a "little" problem with my Program, especially with the builded version of my program.

As long as I am connected via my Windows machine and in the Debug Mode of my Main.vi everything works just fine, no errors and does what its intended to do.

 

But when i try to build my rtexe and run it as startup it wont open rs232 connection to my devices.

 

 

Any Ideas?

 

My installed VISA Version is 5.4.1 and I am running LV 2013 SP1.

Target is a cRIO 9082, also VISA 5.4.1 and NI RIO 13.1

 

Funny thing is it worked just fine a few builds back, but I did no changes on my System.

0 Kudos
Message 1 of 7
(5,645 Views)

Hey Sagme_Mi,

 

do you receive any errors during the start of the application?

Do you have build in error handling code in your RT-Vi?

 

I ask for this information, because you can run the VI in the IDE (LabVIEW) and you will get an error message if something goes wrong on your RT-Target. If you build a RTEXE based on this VI, LabVIEW doesn't report any errors which may happens during the execution of the RTEXE. You will only receive error information, if you have some error handling code in your VI.

 

Regards, Stephan

0 Kudos
Message 2 of 7
(5,616 Views)

Sry for not replien earlier, I dont have access to the machine every day.

 

So i just added a log for the error codes and got: -1073807343

 

Now I am even more confused, how could that be? It says " Insufficient location information or the device or resource is not present in the system."

 

 

I am using COM7 and COM8, and as u can see in the attachment they are there! And the also work when i start the vi on my windows machine?!

 

 

 

0 Kudos
Message 3 of 7
(5,588 Views)

May you need to install additional software componentens regarding to this KnowledgeBase:

 

Error -1073807343 When Reading/Writing to Serial Port on CompactRIO (cRIO) - National Instruments
http://digital.ni.com/public.nsf/allkb/570B021DEBA08213862579990074F9D1

 

Do you know, which function in your code generate this error?

0 Kudos
Message 4 of 7
(5,582 Views)

everything is installed:

 

NI-VISA 5.4.1

NI-Serial RT 4.0.0

 

 

and as i said before it worked a few weeks back just fine.

 

The error have to come out of the "VISA Configure Serial Port"-VI.

 

Is it possible that by any chance/error or something the cRIO have another naming for this COM-Ports?

Shall I try to reinstall the whole cRIO? Maybe something just broke?

 

 

 

br

 

0 Kudos
Message 5 of 7
(5,579 Views)

The COM-Ports on the cRIO should be named like you see the names in NI-MAX. This sould not be the problem. You can also use a function from the VISA palette to get all serial communication pots available on the system. This VI is named "VISA Find Resource".

 

It is may a problem with the installed software, because it worked a few weeks back fine. I would give a new installation a try.

0 Kudos
Message 6 of 7
(5,577 Views)

So,

I just formatted the cRIO and installed everything from the scratch.

 

Same Problem!

 

I think I will just call the NI-Support for help.

 

 

We also want to switch from 2013SP1 to 2014SP1 asap, maybe the problem is solved with this step.

 

 

br

Sagme_mi

0 Kudos
Message 7 of 7
(5,547 Views)