LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LT342 and acquiring average channel ( Channel A ) with IVI driver

I am using IVI driver for Lecroy LT342 - 2 channel Oscilloscope in Labview 7.1 using GPIB ( AT- TNT).
 
The driver works ok  for most of the purpose BUT
 
Although I can access Channel 1 and 2  waveform  unfortunately I cant access the average channel (Channel A and B ) for acquiring  summed  average ( I want to define Channel A= Continuous average of Channel 1).
 
I defined them ( physcial name TA and TB ) in MAX still while I tried to use them it gives error.
Does anybody knows how to do it.
 
In the first level this IVI uses a DLL file ( Iviscope.dll ) that is hopefully supplied by Lecroy ( or NI  ? )
 
Does is there any way to debug the IVI DLL files say in Labview and update them to have this function.
 
regards
Ray
0 Kudos
Message 1 of 7
(3,433 Views)
Where did you get your IVI driver from? Did you download it off the instrument driver network? If not, you might start with that driver:

LTxxx IVI Driver Download

Also, what error exactly are you getting when you try to run your application? Logan S.
0 Kudos
Message 2 of 7
(3,424 Views)
Thank you very much for your reply
 
I am using the same driver (lcltxxxx_LV71.msi) from the same website that you mentioned.
While I use channel TA ( i configured it in MAX). After installation I open the example
IviScope - Acq Wfm Edge Triggered.vi that I found in example folder of ni example finder and when I try to acquire channel A ( hysical name TA )
 
While I try to run the vi it gives following error:
----------------------------------
Error 1074134970 occur at Iviscope Configure channel.vi
possible reasons- driver status ( Hex 0xBFFA0046) the attribute is not valid for the specified channel or repeted capabilites.
Primary error:( Hex 0xBFFA0046) the attribute is not valid for the specified channel or repeted capabilites.
Secondary error: Hex 0xBFFC0006) Parameter 6 out of range or error occured while setting parameter 6
--------------------------------------
I attached herewith the example from Labview example included with the Labview software ( open-Example finder -give search ivi then open < IviScope - Acq Wfm Edge Triggered.vi>
 
regards
Ray
0 Kudos
Message 3 of 7
(3,420 Views)
Tal, From the looks of it it appears that the only valid channel input options are C1-C4. Any other input is probably rejected in the call to the DLL. I would try changing the name of your channel and see if it likes that. Craig H.
0 Kudos
Message 4 of 7
(3,406 Views)
Hi
We found some way to acquire Chaneel A but we have some problem.
We left the IVI driver and rather used normal vi ( found in function-output
-inst driver-lecroy-Acquiztion example-getting started .vi that install after
installing lctxxxx-Lv71.msi from Ni website )
 
The task
-------------
we are trying to acquire the Channel A  which we want to set as -> math Channel A= Summed average(Channel1) for 100 sweep.
 in LT342 DSO using Labview7.1 with AT-GPIB TNT ISA card in WinXP Prof.

I downloaded and install the driver for Labview7.1 (lctxxxx_LV71.msi) from NI website and
used some included example
( Function-Output-Instrument driver-Lecroy-Acquizition example-lctxxxx_getting started .vi
we incorporated  the lctxxxx Channel math.vi in the getting started.vi
( Obtained from NI upon installing lctxxxx_LV71.msi driver for Lecroy LT342 DSO
from NI website).
lctxxxx Channel math.vi call  lctxxxx_32.DLL  and use function <lctxxxx-ConfigureChanmath>
that has a parameter ( Parameter 1 = 8 byte dounble ) which control the numbet of sweep.
Problem-
-------------------
Unfortunately although the overall vi runs but we can access Channel A for only 2 sweep.
the parameter 1 repond only upto 2 so for Parameter1 though we set the scope set
channel A= Average (1) for 100 sweep but it does only 2 sweep.
Does the function call <lctxxxx-ConfigureChanmath> has any Bug in parameter 1
(parameter 1=  number of sweep) or we are doing some mistake.
Can i debug this DLL in Labwindow CVI.
is there other solution for this problem.

I included the vi ( Good Average.vi ) with this mail.
regards
 
Ray
0 Kudos
Message 5 of 7
(3,395 Views)

sorry i forgot to include the vi.

here it is....

0 Kudos
Message 6 of 7
(3,396 Views)
tal,

Since I do not have access to your instrument it is difficult to troubleshoot behavioral issues when it comes to the LabVIEW code. Can you successfully run the Getting Started example? There are not any bugs that I can find in looking through documentation. From what I understand you are attempting to run this VI continuously? Have you tried placing the code in a loop? This would be preferable to running the code by using the 'Run Continously' button.

Craig H.
0 Kudos
Message 7 of 7
(3,383 Views)