From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Open file dialog on real time target

Solved!
Go to solution

Is it possible to load data from a file on a local PC from a VI running on a RT target? I have an NI RIO that the VI is running on. From the front panel I want to be able to click a button and have a file dialog pop up where I can choose a local file to load data from. The problem is that when I try to use the load data from spreadsheet VI it returns an error saying the dialog was cancelled. If I use the file dialog express VI, the VI always returns true for cancelled. The file dialog never appears. Is it not possible to open a local file in a VI running on a real time target? 

0 Kudos
Message 1 of 3
(4,072 Views)
Solution
Accepted by topic author jckvt
Jon VT-

This function will not work in Real-Time (RT).  Please review KnowledgeBase 2S9D21OH: Creating a File Dialog for Use with LabVIEW Real-Time for additional information on this.  However, this will only locate files on the RT target.  If you are trying to communicate with a file on your Host machine, you will either need to transfer this document to the RT target, or set up different architecture to accommodate this task.  I should also add that having the user define the file source manually creates non-determinism within your system.  Again, this may be another reason to set up a different architecture. 
Regards,

Mike S
NI AE
0 Kudos
Message 2 of 3
(4,044 Views)
Thanks a lot for the help!
0 Kudos
Message 3 of 3
(4,032 Views)