Go to Post The gearbox can be anything, just as long as it weighs less than 0 lbs, and yes, I'm talking about negative weight here. - NoodleKnight [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-12-2010, 23:41
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: on Mac

Assuming you have intel-based Macs running 10.5 or later, you have two options:
Dual-boot (using Bootcamp)
OR a virtual machine (VMware Fusion, Parallels Desktop, etc.)

You can use a Virtual Machine on any intel-based Mac (that includes some machines running 10.4 ) , but Bootcamp wasn't introduced until OS 10.5.
__________________
-- Marshal Horn
Reply With Quote
  #2   Spotlight this post!  
Unread 30-12-2010, 01:42
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: on Mac

Hi. I have only used the Mac OS on a Virtual Machine, and not a lot with LabVIEW. Most cross platform implementations use the disable structure with the project "conditional disable symbols." Typically they would be placed around the DLLs or other platform specific code. Although, I suspect making wrappers for every vision VI that you use is probably going to be time consuming. You could try using the disable statement around the whole vision section and other problematic areas in your robot code.

Edit: Example posted:
Click image for larger version

Name:	Conditional Disable Diagram.png
Views:	8
Size:	12.8 KB
ID:	9547
__________________
Mike B

Last edited by SuperS_5 : 30-12-2010 at 01:55.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-12-2010, 15:18
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: on Mac

I considered using VI Scripting to put disable structures around the CINs. However, I'm not familiar with how to place a structure around elements (I believe you have to place it down, move everything inside, and then fix broken wires). I also was uncertain of how to configure the conditional disable structure with scripting.

If there isn't a way to make dummy frameworks, I can just keep pressing "ignore" when LabVIEW searches for them.
__________________
-- Marshal Horn
Reply With Quote
  #4   Spotlight this post!  
Unread 30-12-2010, 19:48
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: on Mac

I have not played with scripting enough to give an example of that. I would put it around the code in your upper level VIs to keep life simple. If you really want to, you could just copy the whole library to your MAC side and go through all of the VIs to remove the offending code. (You could also use scripting for that) I don't recommend this though, as it makes it very difficult to upgrade/move. Any VIs connectors or references change between versions, it would cause broken code until everything is relinked. Modifying libraries are generally not recommended.
__________________
Mike B
Reply With Quote
  #5   Spotlight this post!  
Unread 31-12-2010, 10:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: on Mac

Hi, my name is Greg, and I too use a Mac. I've been using since 1986, and I use numerous times a day. I hardly go a day without using.

If I'm loading FRC stuff, I typically just hit ignore a few times. I've never bothered building frameworks with the right entry points.

The other thing I do is to run parallels with Win7, LV, and other SW installed there. To keep the battery usage down, I typically have the VM paused. It only takes about five seconds to resume. Because the clipboard works transparently between the VM images, and one of the disks (Z) is mounted on Win7, I can pretty easily do everything I want. I still get stymied by networking sometimes. I end up going through the various Bridged and Host-Only settings until I find something that works.

Once upon a time, NI had a version of RT host for the mac, but there simply weren't enough purchases to justify the testing effort of the various protocols and configuration tools.

If you have any questions about the scripting, or any success, let me know. A slightly different approach would be to copy the VIs over to the Mac, and don't bother with the disable node, but instead, use scripting to delete the CLF nodes and remove bad wires. This will leave many of the VIs stubbed and returning defaults, similar to what you'd get if you disable the CLF.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 31-12-2010, 14:16
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: on Mac

Thanks, that answered my question. Building dummy frameworks isn't worth it.

I might delve into scripting sometime again (perhaps this summer?). It would be really nifty to find broken pieces of code (and drill down to the lowest level it can), and disable them.
However, your solution of just deleting the CLF nodes and FPGA invoke methods would probably be easier.
__________________
-- Marshal Horn
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pc/mac nextvex IT / Communications 102 20-11-2006 22:04
Works on Mac? spears312 IT / Communications 8 12-01-2005 10:31
mac? AlbertW Chit-Chat 9 29-03-2003 21:01
Mac Programming tiskippy Programming 2 12-02-2003 00:08


All times are GMT -5. The time now is 21:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi