Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming TEAC LX-10 data recorder

I'm programming a TEAC LX-10 data recorder with LabVIEW 8.5 via IEEE1394. The supplier provided the dll and some information on how to save data to PC.
 
I can change most of the settings (the ones I tried) programmatically and read the status of the recorder. The problem is I have no idea how to save the data on the PC, most of the time crashing LV.
 
Does anybody have experience with programming this equipment?
 
I added the dll informations as attached files.
 
Thanks
 
Ben
0 Kudos
Message 1 of 5
(4,699 Views)
HI ben64,

I don't have any experience with the TEAC LX-10, but these links may be helfpul:

Developer's Zone Example Program - Importing TEAC TAFFMat
http://zone.ni.com/devzone/cda/epd/p/id/3669

Instrument driver for TEAC LX-10 16 channel ADC with IEEE1394 -
http://forums.ni.com/ni/board/message?board.id=170&message.id=153552&requireLogin=False

I may be able to help you troubleshoot why LabVIEW is crashing.  Is it giving you any sort of error codes?  What exactly happens?  Are you able to reproduce the crash consistently?
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 2 of 5
(4,681 Views)

Thanks for your answer Eriquito,

Unfortunatly the links are not helpful in my case since I already passed this development stage. I'm using the TEAC dll and I already downloaded and installed the TEAC TAFFmat plugin.

For the LabVIEW crash it is partly solve, I was receiving a Fatal Error ThEvent.cpp line 190 message and I think it was caused by a bad parameter connected to a call library function node. But now from time to time I receive a LabVIEW needs to close error message after doing very minor things like moving an object on the block diagram or moving the window scrollbar.

My major challenge right now is to find a way to save the data in a selected repertory on the PC. There is an exemple of real time recording on p.5 of the LX01_sampleE104_101604 attached document. This exemple specify to create a pointer to a short[nSize/2 ] buffer (where nSize is the number of remaining elements to transfer) and I wonder how to connect this to the output of a Call Library Function Node (I know I have to specify Adapt to Type and select Pointers to Handles but will it be preferable to use C code with the CIN node, I'm not very familiar with C and I don't have a programming background). Also the exemple is not very clear if the Get Data routine should be in a loop. Other issues are to save the data in a file and make sure it will fit the TAFFmat format. I would like it to be in this format to use the plugin functions and data analysis functions.

Thanks,

Ben64

0 Kudos
Message 3 of 5
(4,670 Views)
Hi ben64,

About the "ThEvent.cpp line 190":  this was known to be happen under certain cirumstances in LabVIEW 8.5 and is supposed to be fixed in 8.5.1.  Please see the following page for more info (see entry 66461/4CUGA5RK):

LabVIEW 8.5 Known Issues


--

Do your other random crashes happen when any vi is open, or only when that specific vi is open?  You may try uninstalling and reinstalling LabVIEW to see if that helps the issue.  Also, if LabVIEW is showing you an error log when it restarts, posting that here might help us figure out exactly what is causing the crash.

Generally, when calling DLLs that involve pointers (short*, for example), it is difficult without writing a wrapper DLL in C to extract the primitives.  This KB article gives more information on calling DLLs:

How Do I Call a Dynamic Link Library (DLL) from LabVIEW?

--

As to your other questions about the specifics of the way the DLL works, I would recommend contacting TEAC, since they wrote the DLL.
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 4 of 5
(4,646 Views)

Hi. I have the same problem to control a lx 120 teac equipment from labview. Do you solve the problem to work with the equipment from labview? Any script or function that coluld help me with this task? I am trying to read the data that LX120 is registering for viewing in frequency domain, since I only have the LxNavi simple software.

 

Thanks.

 

Pelayo

0 Kudos
Message 5 of 5
(3,834 Views)