Problem with Close TC08.vi

Post your LabVIEW discussions here
Post Reply
teeemzeh
Newbie
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm

Problem with Close TC08.vi

Post by teeemzeh »

hi,

we have a question according the close procedere in the close.vi for the TC08 USB Datalogger under labview 2009.
when the function usb_tc08_close_unit is called, there is no return value. For the following case structure is a 0 or 1 needed. For this value the argument (usb_tc08_close_unit) of the function is used. As result for only one device is produces an error in the case structure because the device id is always 1. Therefore the device isn´t closed without an error in Labview. Our Question: Is this an error in the programm or is there a misunderstanding?
maybe someone can give a solution.

best regards

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Problem with Close TC08.vi

Post by Robin »

Hi

usb_tc08_close_unit returns a 1 if successful or a zero otherwise.

Can you post the VI here?

Thanks

Robin

teeemzeh
Newbie
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm

Re: Problem with Close TC08.vi

Post by teeemzeh »

hi,
here is the vi.

the function usb_tc08_close_unit from usb_tc08.dll returns a 1 (or arg1 remains the same and is transmitted to the input of the case structure) and this causes an error in the following case structure.

thanks for reply
best regards
Attachments
CloseTC08.vi
(18.36 KiB) Downloaded 533 times

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Problem with Close TC08.vi

Post by Robin »

Hi

I should have said, can you save it for Labview 8.2?

Thanks

Robin

teeemzeh
Newbie
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm

Re: Problem with Close TC08.vi

Post by teeemzeh »

hi,

Yes - we can :-)......

best regards
Attachments
CloseTC08_v8_2.vi
(20.23 KiB) Downloaded 538 times

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: Problem with Close TC08.vi

Post by Robin »

Hi

I don't recognise that VI. Is it an old example of ours?

The case structure isn't using the return value of usb_tc08_close_unit, it's using the handle to the device. It should be connected to the return value (the top terminal on the right of the call library function node). It should also be changed to generate an error when the returned value is 0, not 1.

Hope this helps

Robin

teeemzeh
Newbie
Posts: 0
Joined: Mon Aug 09, 2010 1:20 pm

Re: Problem with Close TC08.vi

Post by teeemzeh »

hi again,

we download the programm example @
http://decibel.ni.com/content/docs/DOC-4785
and we check these files again, especilly the close...vi and it seems to be wrong there (NI-Site).
now we try change the vi in your way and we hope it works.
also we look for your examples from the picotech site.

thanks for your help

best regards

Post Reply