Test and Measurement Forum

Read from many TC-08

Post your LabVIEW discussions here

Read from many TC-08

Postby gepponline » Tue Nov 30, 2010 3:37 pm

Hi another problem...
i have 4 TC-08 and i like to read all of them.
I found no function to indicate from which one i'm going to read samples and nothing that indicates to me which i'm reading.


Can anyone help me?
gepponline
Newbie
 
Posts: 0
Joined: Tue Nov 30, 2010 9:47 am

Re: Read from many TC-08

Postby Chris » Tue Nov 30, 2010 5:32 pm

You need to use usb_tc08_get_unit_info to read back the unit information including the serial number of each of 4 units, to determine which handle belongs to each unit.
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: Read from many TC-08

Postby gepponline » Wed Dec 01, 2010 8:46 am

I can read from the "usb_tc08_get_formatted_info" the info of the TC-08, but HOW can I open more than one unit.
At the monet i use these steps:
1) open unit (i have 2 units connected but only one is going to be opened)
2) get formatted input
3) close unit


This sequence is wrong 'cause i have to disconnect unit every time i read info to make it read it the next time.
What i have to do?
gepponline
Newbie
 
Posts: 0
Joined: Tue Nov 30, 2010 9:47 am

Re: Read from many TC-08

Postby Chris » Wed Dec 01, 2010 2:33 pm

You will need to call Open_unit twice, to allocate a handle for each unit.

These handles are then used on all subsequent calls to control the units they correspond to.

Use the get_formatted_info function to get back the unit serial number corresponding to the handle passed.
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests