Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sat Nov 18, 2017 10:37 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jul 09, 2010 9:03 am 
Offline

Joined: Thu Jul 08, 2010 1:28 pm
Posts: 4
Is there a define similar to _TOOL that I can use to conditionally run code based on if I am on the simulator vs the hardware?

My code saves to /drv1/ for the USB access, but the simulator will not cd or create that directory so I have an init that I comment out to choose if I want to use /drv1/ or /sim:/ as my root path.

' when simulating, use this path
'init FILE_ROOT := "/sim:"
' when loading to the terminal use this one
init FILE_ROOT := "/drv1"

would be better if it was a conditional.
#if _SIMULATOR
init FILE_ROOT := "/sim:"
#else
init FILE_ROOT := "/drv1"
#endif

Thanks,
Nathan


Top
 Profile  
 
PostPosted: Fri Jul 09, 2010 9:06 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
'Layout View test
#if _TOOL

'Simulation View test
#if _TOOL_SIM

'Layout or Simulation view test
#if _TOOL_ANY

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Fri Jul 16, 2010 8:28 am 
Offline

Joined: Thu Jul 08, 2010 1:28 pm
Posts: 4
Thanks for the information. Is there a document that lists these?

Nathan


Top
 Profile  
 
PostPosted: Tue Jul 20, 2010 10:23 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
_TOOL is partially documented in section 2.21.2 of the Programmers Reference Manual, but the rest of those are un-documented options.
http://www.qsicorp.com/pdf/?id=qlarity/programref

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
PostPosted: Tue Jul 20, 2010 10:34 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
I have put in a request to get those options documented.

They are supported options and are not going to be changing, they were simply missed in the documentation.

_________________
Jeremy
http://www.beijerinc.com


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