Scott,
Pipes works great on OSX and widen quite a bit the interactions between LV
and OSX.
Also using the System Exec.vi you can easily send applescript using
"osascript -e 'your applescript'"
If you need to run in sudo mode try this in 'System Exec.vi' to show a
dialog box to enter your admin pw.
osascript -e 'do shell script "sudo ls" with administrator privileges'
Hope this help
Chris
> From: Scott Hannahs <[EMAIL PROTECTED]>
> Date: Thu, 05 Feb 2004 09:19:33 -0500
> To: [EMAIL PROTECTED], Igor Mailing List <[EMAIL PROTECTED]>
> Subject: Re: LV -> Igor
>
> At 18:05 -0500 01/07/2004, Daniel Flatin wrote:
>>> David Thomson wrote:
>>> A colleague of mine wants to write data from LabVIEW into files of Igor
>>> waves to analyze in Igor. I told him that I could find such conversion VI's,
>>> as I had used them years ago.
>>
>> You could also do this with AppleScript, and I am sure there is some other
>> option on that other platform, but Igor's batch approach relieves you of
>> having to manage a third programming environment. Also note that with the
>> embedded commands in an Igor text file you can customize the processing for
>> each data file. The advantage of using the text route is that all your code
>> can be in G or in Igor's scripting language, ensuring both human readability
>> and platform portability.
>
> I have updated versions of the VIs (Gary Johnson who wrote the originals
> updated them I believe).
>
> But I was looking for a more direct route to pass data cleanly between LabVIEW
> (or any application) and Igor. At the moment I am only concerned with Mac OS
> X. There are some nice unix features such as named pipes that could be
> utilized.
>
> I was thinking that the best way to do this would be Apple events to send a
> script to Igor to setup a FIFO and the named channels and then have LabVIEW
> pipe data into the FIFO. What would be really cool is to pipe data into the
> FIFO from a named pipe. A background task in IGOR could read data from the
> pipe (in either ascii or binary) and place it in the fifo. LabVIEW could read
> the instruments and write the data to the named pipe as it is collected,
> closing the pipe when it is done. A pipe passing binary double precision
> floats would be fairly efficient!
>
> Any comments on the above scheme before I get around to coding it up?
> Possibly two pipes, one passing Igor commands and one passing data?
> -Scott
>
>