Thank you for you reply.
I have already installed the VISA, the lecroy "passport" and copied the lcwave into a folder under instr.lib on my computer.
I have just now tried "lcwave acquire waveform".
The ip of the scope is 10.12.24.130
-------------------------------------------------------------------
In resource i wrote: TCPIP::10.12.24.130::INSTR
I choose channel 1, on which i just had random noise.
After hitting run i get the error: Error - 1074003951 occurred at an unidentified location
Possible reasons: LCWVE INITIALIZE
-------------------------------------------------------------
When writing: VICP::10.12.24.130::INSTR
I get a much wilder effect, the scope goes into a "auto setup" mode, activates channel 2 and set trigger on channel 1 (i trigger on external).
And after a few seconds i get this error:
Error -1073807339 occurred at Timeout expired before operation completed.
I seem to be getting through to the scope - however something is going wrong!
Am i dooing somthing terribly wrong?
And by the way, i could not find any of the example vi's under ni example finder - I had to open the lcwave.llb file and run the vi from there.
Hope you can help me with this.
Simon
Hi Simon,
You are definitely on the right track. For TCP/IP connections, you should use the connection string beginning with VICP. The example "lcwave acquire waveform" will reset the scope to the "default setup", and perform an autosetup. You received the timeout either because a) the autosetup took longer than the timeout value selected, or because b) you didn't have a signal in the specified channel that the scope could trigger on. Note that this example changes your trigger source from EXT to C1...
Here's how to make the example work for you... Go to the block diagram, and wire a False to the Reset? input of the Initialize VI, and delete the autosetup VI. If you change your trigger source on the scope to External, and you give a valid trigger input, then the example should return data since disabling the reset will no longer change the trigger source.
The examples are located in the Examples function palette of the driver; this is standard for properly-designed LabVIEW drivers. I don't think that example finder is taylored for non-NI instruments.
Best Regards,
Alan
Ok I have an additional question
It seems like I can read the y-values in a data format called "waveform data" (1d array), what I cant see is how I get the right time values (x-values).
Also when this runs it changes the trigger to single, i guess this is fine however I would like to be able to set it to normal again just before the lcwave close (im going to do many loops to average the waveform on the computer).
Hope you can help me
Simon
Hi Simon,
Use Configure Continuous Acquision.vi to set the scope in Normal trigger mode. The way this VI works is a bit odd; I think it wold make more sense to just list the choices of Auto, Normal, Single and Stop, but this particuar approach conforms to a certain standard... In any case, configure the inputs that put the scope into Normal trigger mode.
As for the time values... The driver needs a better approach to getting this data. In the meantime, send the string inspect? 'horiz_offset' using the lcwave Write.vi, and then read the response with lcwave Read.vi (set the requested byte count to 100 will be fine). This reads back the horizontal offset, which is the time of the first sample. Successively adding the dt value that is part of the Waveform cluster will give you the times of subsequent points.
Best Regards,
Alan