From Jim-Henry at utc.edu Thu Nov 15 16:11:15 2012
From: Jim-Henry at utc.edu (Henry, Jim)
Date: Fri, 16 Nov 2012 00:11:15 +0000


Subject: 2 VIs access 1 DAQ card?
In-Reply-To: <1F9258805BD7614E87B9D3077773DEFA029FE4@TJ-MAIL.TJet-Tech.com>
References: <0160AA0E-D5D3-4361-BCF3-E7351E9106AB@xs4all.nl>
<1D4B1405-0E61-4A52-82FB-574E14735FA9@magnet.fsu.edu>
<AC72D9FC-1881-4AF0-ABF8-AE422335C84E@xs4all.nl>
<45D52276-5233-4F5D-9C78-A0F87EB06B00@magnet.fsu.edu>
<C73E214A-E444-461C-AFAD-7A6FA57B9B76@xs4all.nl>
<8A2B4CF0-004C-4841-8DF0-FDCDA8044571@magnet.fsu.edu>
<0BA054A7-A98C-46B0-A52A-816778C1CFB1@xs4all.nl>,
<15059332-A359-4891-9F5D-096DE64F6656@space.unibe.ch>
<681874636CE1CE4E8898C99357E952070E96F5BD@UTCMBX1.utc.tennessee.edu>,
<1F9258805BD7614E87B9D3077773DEFA029FE4@TJ-MAIL.TJet-Tech.com>
Message-ID: <681874636CE1CE4E8898C99357E952070E96F607@UTCMBX1.utc.tennessee.edu>

THX Nathan

That's the answer that I suspected.

JIM
--
--
> --
> --------
> -- "Forgive everyone,
> Jim Henry Forgive everything."
> E mailto:jim-henry at utc.edu --Morrie
> web-page http://chem.engr.utc.edu/jim-henry
> College of Engineering and Computer Science
> University of Tennessee at Chattanooga
> Chattanooga, Tennessee, USA 37403
> Phone: 1-423-425-4398
> Fax: 1-423-425-5229
> Grandpa's Brag pages:
> http://jimengineering.yolasite.com/

________________________________________
From: info-labview-bounces at lists.infolabview.org [info-labview-bounces at lists.infolabview.org] on behalf of Nathan Dushman [ndushman at kateeva.com]
Sent: Thursday, November 15, 2012 6:57 PM
To: Info-LabVIEW
Subject: RE: 2 VIs access 1 DAQ card?

Sounds like your situation is more like "Case 6" from the document you mentioned. You can have only one DAQmx Task accessing the analog inputs at a time. Each DAQ Assistant creates a separate task, so you get the error. You'll need to configure the analog input task to read all of the AI channels, then split out the data in your code.

You can have a separate task for digital inputs, another for analog outputs, etc. You just can't have more than one task accessing (or reserving) the same type of resource at a time. I'm not sure what you mean by "DAQ assistant" (a specific Express VI for simplifying measurements) versus "DAQ express" (??) versus "DAQmx" (the data acquisition driver) but I hope this answers your question.

Nathan

-----Original Message-----
From: info-labview-bounces at lists.infolabview.org [mailto:info-labview-bounces at lists.infolabview.org] On Behalf Of Henry, Jim
Sent: Thursday, November 15, 2012 3:46 PM
To: Info-LabVIEW
Subject: RE: [Mac]Bug in serial reading binary data

Hi,,

I have a PCI-6229 with 32 AI I want 2 VIs to run simultaneously, each collecting AI on separate lines. One on AI0-AI15, the other on AI16-AI31



I get error -50103 that says that with DAQ assistant this is not possible (as I have learned with error -50103).


Also, http://digital.ni.com/public.nsf/allkb/485201B647950BF886257537006CEB89
says "It is not possible to have multiple DAQmx tasks attempting to access the same physical device."


Please clear up this for me. Does this mean only DAQ assistant, or only DAQ Express or only DAQmx? Or does it mean ALL data acq in LabVIEW to the board?


I know there are other ways to do what I want, but I just thought I'd ask.


THX,
JIM
--
--
> --
> --------
> -- "Forgive everyone,
> Jim Henry Forgive everything."
> E mailto:jim-henry at utc.edu --Morrie
> web-page http://chem.engr.utc.edu/jim-henry
> College of Engineering and Computer Science University of Tennessee at
> Chattanooga Chattanooga, Tennessee, USA 37403
> Phone: 1-423-425-4398
> Fax: 1-423-425-5229
> Grandpa's Brag pages:
> http://jimengineering.yolasite.com/

________________________________________
From: info-labview-bounces at lists.infolabview.org [info-labview-bounces at lists.infolabview.org] on behalf of Urs Lauterburg [urs.lauterburg at space.unibe.ch]
Sent: Monday, November 05, 2012 2:02 AM
To: Info-LabVIEW
Subject: Re: [Mac]Bug in serial reading binary data

Paul, Scott et al.,

Because I do quite a lot of serial from my Macs I consider myself lucky that so far I don't seem to be affected by this subtile bug.
However, it could really lead to hard to track down effects with serial communication and of course it should be reported firmly and right away. I really hope NI developers in charge will straight it out soon.

Thank you guys for spotting this bug!

Happy wireworks

Urs

Urs Lauterburg
Physics demonstrator
Physikalisches Institut
University of Bern
Switzerland


Am 02.11.2012 um 21:56 schrieb PaulRijk:

> Scott,
>
> Thanks a lot for testing.
>
> I put it in the november buglist
>
> Paul
> _____________________________
> On 2 nov. 2012, at 21:17, Scott Hannahs wrote:
>
>> On Oct 31, 2012, at 11:27, PaulRijk <lv_paulrijk at xs4all.nl> wrote:
>>> Scott,
>>>
>>> Indeed, after UNinstalling the FTDI-driver did not see the usb-
>>> serial adapter anymore. However, I noticed the problem when
>>> communicating with an Arduino-Uno which is visible (and
>>> communicating) with or without the FTDI-driver.
>>> So using the Arduino on the other side I was able to check both.
>>>
>>> Thanks for sending the code. Unfortunately I don't have a compiler.
>>> Is it possible for you to mail it as an executable?
>>
>> Ok, so I tested it on my system now that I can get back into the lab.
>>
>> Mac OS X 10.6.8 / LabVIEW 8.5.1 / VISA 5.20
>>
>> I see the exact same problem. And it seems to be a VISA thing.
>> This does not appear to be driver related. Not sure why but it is
>> some sort of unexpected feature of VISA? Not sure why \FF shows up
>> as two characters in the bytes at serial port functionality.
>>
>> -Scott
>>
>> _______________________________________________
>> Info-labview mailing list
>> Info-labview at lists.infolabview.org
>> http://lists.infolabview.org/listinfo.cgi/info-labview-
>> infolabview.org
>
> -------------- next part -------------- An HTML attachment was
> scrubbed...
> URL: <http://lists.infolabview.org/private.cgi/info-labview-
> infolabview.org/attachments/20121102/018910df/attachment.htm>
> _______________________________________________
> Info-labview mailing list
> Info-labview at lists.infolabview.org
> http://lists.infolabview.org/listinfo.cgi/info-labview-infolabview.org

_______________________________________________
Info-labview mailing list
Info-labview at lists.infolabview.org
http://lists.infolabview.org/listinfo.cgi/info-labview-infolabview.org


_______________________________________________
Info-labview mailing list
Info-labview at lists.infolabview.org
http://lists.infolabview.org/listinfo.cgi/info-labview-infolabview.org
_______________________________________________
Info-labview mailing list
Info-labview at lists.infolabview.org
http://lists.infolabview.org/listinfo.cgi/info-labview-infolabview.org