From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesn't the input file dialog prompt once I attach it to a device?

Solved!
Go to solution

For my project I am require to move a 3-axis robot from a list of set co-ordinates to either cut into/draw a picture. The only way I can thnk of doing this is by reading the co-ordinates from a spread sheet and timing it to read the co-ordinates and send the information to the straight-line move function (Softmotion).

 

The problem occurs once I try to run the program while it's connected to the devices (motors). The file dialog prompt no longer shows up and Error 43 shows up right away. I traced the problem to the read from spread sheet vi, but I am not sure what to do because it is a standard function in labview.

 

If you could take a look and give me some input it would be greatly appriciated, I've been learning labview on my own for about a month so if you can please use simple explinations.

 

0 Kudos
Message 1 of 11
(3,304 Views)

Where are you running the vi from ? Under My Computer or under your cRIO ?

0 Kudos
Message 2 of 11
(3,290 Views)

It is ran under cRIO, I usually drag the VI into it when I need to test it.

0 Kudos
Message 3 of 11
(3,268 Views)
Solution
Accepted by topic author Hideoutdoor

The cRIO runs the LabVIEW RealTime OS.  The RT OS does not have a user interface, and therefore no dialog.  You need to specify the file some other way, like sending a command with the file path in it via TCP or Network Published Shared Variables.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 11
(3,241 Views)

And remember that the cRIO can't access the files on your PC directly.

 

0 Kudos
Message 5 of 11
(3,234 Views)
So does that mean having it open from a specified path will fix he problem?
0 Kudos
Message 6 of 11
(3,219 Views)

Yes it should


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 11
(3,211 Views)

Thanks for the help so far, so I did as you said and added a set path for the program to retreive the file from. I've tested the program by running it in my computer and the file reads properly so my assume is the file is being located and data is taken properly.

 

But I still run into the same error when I run it in cRio. I'm still being told labview cannot locate the file.

0 Kudos
Message 8 of 11
(3,190 Views)

As was stated earlier, the cRIO cannot see files that are on your desktop.  You have to specify files that the cRIO has access to (ie files on the cRIO itself).

 

Another alternative is to use a shared folder on your computer that the cRIO can then access using the network path.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 11
(3,185 Views)

I see, so to clearify I would need to use the FTP vi in labview to send the file from the host (my computer) to the server (which would be the cRio)?

 

0 Kudos
Message 10 of 11
(3,175 Views)