LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read/wirte/drive Device and RefNum

hallo, everyone.
I am trying to programm a interface for a Laserdiode Driver. It works with RS232
I get a library, which is written with Labview 6 und I have Labview 8.2. There are some funktions called "read/write/control Device", which the Labview 8.2 doesn't support any more. Which another funktions in Labview 8.2 can I get to replace these?
And, the other problem come with these funktion is the Refnum Konflikt. There are different Refnum Typs connect together, one is VISA session, the other one is device Reference. How can I fix this problem.
Thanks for any Help.
0 Kudos
Message 1 of 7
(3,304 Views)

I dont think the read/write/control is a standard labview function more likely a subvi part of the driver.  You will be missing the old serial drivers which are replaced by visa.  For the most part the missing vis are a 1:1 replacement with visa.  Open serial is replaced with a open visa session and a COM resource reference, the configure serial is under visa->advanced->bus specific-> Serial, serial real and write are now just visa read and visa writes and serial close is a VIAS close.  Its a little tedious and it really would have been nice if the upgrade was seemless but it is not.  I am not sure why there is not a utility for such situalions.  If you replace the missing serial calls with VISA calls you should be in good shape.

 

Paul 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 7
(3,296 Views)

Hallo Paul,

Thanks for the Help. I tried the VISA functions before. But I still got the Refnum problem. One typ of the Refnum is the VISA session (for classe) and the other one is device reference. They cannot connect together. Thanks for any suggestion.

Message Edited by Lumanova on 05-15-2007 02:56 AM

0 Kudos
Message 3 of 7
(3,273 Views)
Hi!

Paul is right, probably the old driver is using the old VISA functions which used another references.
You should "re-write" the functions using the new references for VISA.

Here some informations:
http://digital.ni.com/public.nsf/websearch/8F7029E67813CFA486256C680006714A?OpenDocument

Regards
Ken
0 Kudos
Message 4 of 7
(3,267 Views)
Hi Ken,
 
Thanks. But there is no word "old " written across the VISA function. Please see the attachment, it may help me to explain my problem. In this example, i can replace the "read device" function by VISA Read, but i am not sure what to do with the global variable. And there are many such Refnum Konflikt with the functions "read/write/control device" in another SubVIs. I thought it must be easier to solve the Refnum problem than to replace all the device functions. Because they have different Inputs and outputs from the VISA functions. Because the Labview donot support these functions for blockdiagramm any more, I cannot find any useful Informations in LabviewHelp to solve the problem.
 
Thanks for any suggestion.
 
 
 
Lei
0 Kudos
Message 5 of 7
(3,263 Views)
You should replace the Serial Port Read with VISA Read. In fact, LabVIEW will do this for you. Open the llb that you are trying to convert and see if it has Serial Port Read in it. If it does, delete it. If it's in a llb, LabVIEW will use what is there instead of using the replacement function. Whoever created the llb did a bad thing by including functions from the vi.lib folder. If there are other function in the llb that are part of the LabVIEW distribution, they should also be deleted. The conversion should be very smooth if you start with a llb that was created correctly. If you need help in deciding what should be removed, post the llb.
0 Kudos
Message 6 of 7
(3,251 Views)

Hallo Ken,

Thanks for the suggestion. I will try it. When it donot work, I will try to write the programm by myself.

I also thought it must be not easy when i start with a llb. The big problem is, the company, who support me the llb, didnot write the llb by themselve. They have also no idea about it.

Thank you all.

Lei

0 Kudos
Message 7 of 7
(3,221 Views)