Beijer Electronics (formerly QSI Corporation)

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

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Mar 22, 2011 9:07 pm 
Offline

Joined: Mon Mar 21, 2011 2:40 pm
Posts: 22
I am developing for the Qterm-G72 via Windows XP Qlarity Foundry 2.53. I am attempting data logging while in simulation mode, as I do not always have access to the actual panel hardware.

Are the locations of files created in simulation mode by the datalogger and fileobject objects changeable to the /sim: directory? I have been able to do so with files created during simulation with the filesystem API, but it seems the datalogger and fileobject objects only allow filenames and not full path names in the filename property.

I would like to learn how to use the datalogger object, thus need to inspect/view the resulting files through the operating system file browser.


Top
 Profile  
 
PostPosted: Wed Mar 23, 2011 7:57 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
Quote:
Are the locations of files created in simulation mode by the datalogger and fileobject objects changeable to the /sim: directory?


The DataLogger saves files in a special format that is called Text format. This is a Qlarity specific format and is only compatible with Qlarity. That is why it will not let you save the file in the "sim:" directory.

Quote:
it seems the datalogger and fileobject objects only allow filenames and not full path names in the filename property.


In my testing just now, they both allowed full path names such as "/tmp/filename.dat", etc.. However the only limitation I found was that the "sim:" directory would not work with the DataLogger. It did work with the FileObject. I am testing with the DataLoggerV2 and FileObjectV2 in the DataProc library.

If you want to use the files outside of Qlarity, you are best logging the data with the "FileObjectV2". The code might look something like this.

Code:
'in FileObject_1
init parent := default
#IF _TOOL_SIM
init filename := "/sim:/data.bin"
#ELSE
init filename := "data.bin"
#ENDIF


Code:
'in Button_1
func click()
    fileObject_1.Write_String("abc" + "," + "efg" + "\r\n", fileobject_1.GetFileSize())
endfunc

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
PostPosted: Wed Mar 23, 2011 8:12 am 
Offline

Joined: Mon Mar 21, 2011 2:40 pm
Posts: 22
All makese sense. Thanks again.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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