LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help: 2 Chan Volt AI, 1 Chan Volt AO. VI Code Gives Memory Access Err

Solved!
Go to solution

Hello:

 

First of I am a total newbie to Labview so apologies if the answer seem obvious/trivial. This is what i have seem able to put together based on using sample VIs as well as reading up on here. Some set-up details

 

* Application: 2 Channel AnalogVoltage Input To DAQ, 1 Channel Analog Voltage Output From DAQ

* Hardware: NI-PCI-MIO-16E-4 (Dev2), BNC-2110 Connector Block

* OS: Windows XP

* Version: Labview 8.5

* Wiring: Two sensors via BNC to Dev2/ai0 and Dev2/ai1, BNC to PFI0 From TTL Generator, BNC From Dev2/ao0 For Hardware Gain Control

 

Intent:

1. Simultaneously trigger the acquisition channels (dev2/ai0 and dev2/ai1) and voltage generation uing a TTL signal (connected to PFI0)

2. Especially important to be able to generate a decaying voltage signal out of Dev2/ao0 which i use for controlling a separate piece of hardware.

 

Approach (My VI is attached):

1. I created the analog input/output channels, wired the input channels in series. Added timingand triggering VIs

2. Selected PFI0 as trigger source for AI. Selected  Dev2/ai/StartTrigger as trigger source for AO. Selested Dev2/ai/SampleClock for AO timing for sync purposes

3. Used a start sequence to make sure AI start first

4. Code give the following error:

 

=================================================

Error 3 occurred at an unidentified location:

 

Possible reason(s):

LabVIEW:  Internal error. Wrong memory zone accessed.
=========================
NI-488:  GPIB Controller not addressed correctly.

 

==================================================

 

 

Any pointers as to what i'm doing wrong? Any help is really appreciated as I am on a deadline.

My gut instinct is that its related to reading the input/writing the output data but not sure what.

Thanks a lot!

 

Cheers,

0 Kudos
Message 1 of 2
(3,032 Views)
Solution
Accepted by topic author uidahosa

uidahosa,

 

This KnowledgeBase article describes your problem.  I didn't see specifically this situation in your code but the "Okay + Warnings" is wired to the [error code] input which I think was probably a misclick.  I am curious to see what errors you get after this.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(2,962 Views)