Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 8:47 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Galil LoadFromFile
PostPosted: Fri Sep 07, 2007 2:03 am 
Offline

Joined: Fri Sep 07, 2007 12:19 am
Posts: 9
I'm trying to do my fist program with galil libraries. I try to download a file to QSI G55 with "loadfromfile" object, but without success. Where as if I use "loadfromresource" object I can download it. I use this syntax:

GMCdownload_1.LoadFromFile ("VAIVEN.dmc")



Where is my problem? Could I get an example?

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 07, 2007 8:18 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
Loading a file as a binary resource is different from having a file in the filesystem of your terminal. A binary resource is compiled, and included as part of the program. You may want to use the FileBrowserV2 object to verify exactly what files you have existing in the filesystem of your G55. You can find this object in the DataProc library. If you don't see that object icon, then go to Tools->Settings and temporarily check the Touchscreen checkbox.

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject: Get a file
PostPosted: Wed Sep 12, 2007 2:02 am 
Offline

Joined: Fri Sep 07, 2007 12:19 am
Posts: 9
Thanks Ron,

It's good, but I have more doubts. My QSI doesn't have touchscreen, can I have some problem? And, I would like to get a file from another device, such as a PC, until the G55 FileSystem, through a LAN connection. How could I do it?



Thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 7:07 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
The FTP object, if you have ethernet on your G55, is the ideal object to transfer a file from a PC (or other source) to the G55's file system.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject: FTP
PostPosted: Wed Sep 12, 2007 9:37 am 
Offline

Joined: Fri Sep 07, 2007 12:19 am
Posts: 9
How is it used? Do you have an example?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 9:43 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
You'll need to create an FTPServerV2 object from the DataProc library. After downloading your application with the FTP server to your terminal, on your PC you'll need to run an FTP client to connect. I recommend FTPCommander which you can download free here:

http://www.internet-soft.com/ftpcomm.htm

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 10:07 am 
Offline

Joined: Fri Sep 07, 2007 12:19 am
Posts: 9
The goal of my program is execute a remote file with galil object, the program has to be independent. This isn't a good solution for my program, I can't install other programs in each computer which wants to use the program. Could I read the file from the remote device (PC) directly?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 10:12 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
The G55 has no driver that would allow it to directly connect to a microsoft (or other) network share.



The options are pretty much limited to the FTPServer or the FTPClient.



To use the FTPServer the G55 acts as a file server and can send and receive files from any PC. While you can use FTPCommander (or any FTP client for that matter), every PC has a built in FTP client.



In the case of Windows PCs there are actually several. You can type the command FTP from a CMD window or from Run option in the Start Menu. You can also use an explorer window (this is my personal preference). Do do this,

go to the Start Menu and select Run. Type "explorer" (no quotes) and press enter.



In the address bar, type "ftp://<ipaddress>" (no quotes) where you replace <ipaddress> with the IP address of your G55. You can then drag and drop files onto and off of the terminal.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 10:18 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
You might try reversing roles and have the G55 be the FTP Client and the PC be an FTP Server. You'll need to setup an ftp server on your PC.



Here's an example workspace using the FTP Client object:

http://www.qsicorp.com/engfiles/bleedin ... erface.zip

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 19, 2007 2:30 am 
Offline

Joined: Fri Sep 07, 2007 12:19 am
Posts: 9
Thanks Jeremy.



I can see you have understand my purpose, does a more suitable device exist, maybe?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 19, 2007 2:38 am 
Offline

Joined: Fri Sep 07, 2007 12:19 am
Posts: 9
Thanks Ron.



I'm interested in this example but I don't have the ftp_client object, when I load the example the object icon shows a red cross, how could I it solve?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 19, 2007 7:26 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
Make sure you have the latest version of Qlarity Foundry (2.50) and the DataProc library. You can add DataProc under Edit->Add/Edit Libraries.

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 19, 2007 7:26 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Quote:
does a more suitable device exist, maybe?




I am unaware of another device that is similar to the G55, has SMB share capabilities and the ability to communicate with a Galil device.



I am not sure why you don't have the FTPClient object. It is a newer object and may not have been released if you aren't using the latest version of Qlarity Foundry.



Again, you can try using the FTPServer object and either the command line FTP command provided with windows or a My Computer or Explorer window to transfer files via FTP and drag and drop.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group