LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write jpeg.vi path issue

I am trying to write a jpeg from my front panel onto a server (from the server it goes onto the web). The computer I use for labview has Mac OS X. The server I am trying to write the jpeg to is a sun unix machine. I can't seem to get the right path so that Labview writes the jpeg to the server. I made sure that I used backslashes in the path for the write jpeg vi for the unix server. This ultimately isn't working. Currently labview puts the jpeg into the same folder that contains all the vi's etc on my mac. Does anyone know why Labview is going as a default to my mac computer and not the unix server despite the fact that i have made the path go to the unix server? There must be a way to write the files directly to the server. Has anyon
e done this?
0 Kudos
Message 1 of 4
(2,702 Views)
made sure that I used  backslashes in the path for the write jpeg vi for the unix server.


Backslashes are a Windows separator - it's not universal. Mac uses ":" as the separator (for historical reasons - even though it's "/" in the Mac command line. You need to compose your path using colons, not backslashes.

Suggestion:
1... Manually move a file to the unix server, where you want to put your JPEG.
2... Put a PATH control on a new VI.
3... Use the BROWSE button to browse to the unix folder and choose the file you manually put there. (you have to mount the volume first).
4... Compose your path to look like what you see in that PATH control.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 4
(2,701 Views)
Well I ended up applescripting the files from my labview computer to the server as you don't seem to be able to put a path in labview with commas and get things written to the unix server. I browsed for the unix folder using safari. it gave me this.

file:///private/var/automount/Network/Servers/acts erver1.cbl.umces.edu/local/apache/htdocs/Alliance /MidAtlantic/buoyimages/salin2.jpg


I went and put this in the path control in the jpeg vi and alas it didn't work. So I changed everything to commas and this didn't work either. Perhaps it is a mounting problem. I need to send from the labview to here. Thanks for your suggestions though.
0 Kudos
Message 3 of 4
(2,701 Views)
I browsed for the unix folder using safari. 


If you tried what I suggested, you might have better luck.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 4
(2,701 Views)