PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't read some indicators using VI Server

Hi. I'm using LabVIEW 7.1 RT to program my application on our PXI RT controller.
We use the application builder to embed the application as an executable that runs automatically on the RT controller.
We note that when we build the RT application, LV says that "RT host has its own version" of some DLLs.
The problem is that when we try to read the indicators from our desktop PC using VI server ("Get Control Value" node) some of the controls and indicators are not well read, while some of them are read perfectly. On the "bad cases", the node gives a string of a fixed length of 4 bytes, independent of the data type of the indicator read.
This problem does not happen when RT application is launched in "development" mode from LV RT.

I think that the version conflict of the DLLs has something to do on this, but I can't know exactly how.

I'm thinking about manually replacing some DLLs via FTP, but our trials have shown that we could easily screw up our RT OS, so we didn't want to go further without some more information.

Any ideas?

Daniel R.
0 Kudos
Message 1 of 3
(3,660 Views)

Hi Daniel_Chile,

What specific dlls are you working with (or give me an example), so that I can have a better idea of what is happening in the RT controller. How many dlls are we talking about?

In the "Get control value" node are you receiving a variant data type or the data type of the indicator?

Tania Lozoya

NI MEXICO

0 Kudos
Message 2 of 3
(3,646 Views)
Hi Tania, I'm sorry about my laaaaate answer, but I had a tight schedule and now we are reaching the end of the project and this problem (that still persists) was not determinant but now still has to be solved to get the full funcionality expected.
 
Tried LV - LV RT 7.1, 7.1.1, different RT controllers, different versions of drivers, format and reinstall sw on RT controller, but still the same. When RT app is launched from host PC, everything works well: when I leave the app running alone I can get the control values perfectly and then when I reconnect (target my host labview to RT) I can get the panel with no problem.
When I build the RT app to the RT controller, says that remote RT has its own version of some DLLs, for example:
 
nilvaiu.dll
\vi.lib\platform\timedloop\lvalarms.dll
\vi.lib\addons\rt\nbfifo.dll
lvanlys.dll
\vi.lib\addons\rt\ets\ni_emb.dll
msvcrt.dll
 
Then when I reboot the RT controller and try to get the control values I get the wrong thing.
If I target my host labview to the RT controller, now it says that can't find the local copy of the remote app. Even if I choose the right VI on my disk, it says that it's not the same VI.
 
I'm reading controls as flattened strings, but I also tried with variants and no change.
 
Again, it's just some controls that I can't read and only when running the built embedded app.
 
Thank you for your comments.
 
Daniel R.
0 Kudos
Message 3 of 3
(3,417 Views)