LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting from LabView 4.0 to 8.5

I think I have the same problem with the 202demo.vi and the ‘Serial Read with timeout.vi’ but I have the LV7, is it just a matter of conversion? Can anyone help me?

 

I’m uploading the zip

 

Thank you very much for your support

0 Kudos
Message 11 of 81
(2,530 Views)
This VI is in version 5.1 and should open just fine in LabVIEW 7.x.

It does use a subVI Serial Read with Timeout.vi which is in the examples in 5.1 but seems not available in LabVIEW 7 anymore .

Rolf Kalbermatter


Rolf Kalbermatter
My Blog
0 Kudos
Message 12 of 81
(2,512 Views)
Hi Mike

I also need to convert a Pico example of abc200.vi (for an ADC-212) from LabVIEW 4.0 (6.1)  to 8.5. Anyone willing to do this for me? see attached and thanks...

I see the error message from Lab view whaen I run the vi file as below:

"LabView: An exeption occured within the external code called by a Call library Function Node. ...".

Takeo T.
0 Kudos
Message 13 of 81
(2,478 Views)
The VIs you posted are in 6.0/61 and will open just fine in 8.5. Can't help with your dll problem since I don't have the dll or the instrument. You might want to check with the vendor.
0 Kudos
Message 14 of 81
(2,467 Views)

Hai Takeo T,

Here its in 8.5

Mathan

0 Kudos
Message 15 of 81
(2,450 Views)

Thank you very much RolfK for your help.

 

I have included your file ‘Serial Read with timeout.vi’.

 

Now although the VI can recognize the SubVi it gives the error “bad linkage to SubVi”.

 

As everything looks right in the block diagram of the 202DEMO.vi I thought that it might be a matter of conversion.

 

What are your thoughts?

 

Best wishes

0 Kudos
Message 16 of 81
(2,416 Views)


@Guady Bird wrote:

Thank you very much RolfK for your help.

 

I have included your file ‘Serial Read with timeout.vi’.

 

Now although the VI can recognize the SubVi it gives the error “bad linkage to SubVi”.

 

As everything looks right in the block diagram of the 202DEMO.vi I thought that it might be a matter of conversion.

 

What are your thoughts?

 

Best wishes




Possibly this VIs connector pane was modified between 5.1 from where your example comes and LabVIEW 7.1 which I attached to my response. However it should be very trivial to right click on the VI and do a Relink SubVI and then verify that the VI is still wired up properly.

See it as a good exercise to learn a bit about LabVIEW wiring.

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 17 of 81
(2,413 Views)

Unfortunately, the VI Rolf posted is not correct. It is not the same as the example that came with older versions of LabVIEW. You are getting the error because the posted VI does not have the same outputs as the original. I don't have anything earlier than 7.1 so I can't post the original either. I think it still existed in 6.1 and maybe with that version can post it. Your other option is to modify the VI you have.

Rolf,

The reason I say its incorrect is that it is calling VISA functions. The original example called the old serial driver.



Message Edited by Dennis Knutson on 05-08-2008 12:31 PM
0 Kudos
Message 18 of 81
(2,407 Views)
Hi Rolf & Dennis,

the LV6.1 version looks exactly the same as Rolf's example, no need to post it here.Smiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 81
(2,379 Views)

Weird. NI must have changed the example at one point because the 5.1 version is supposed to have a Boolean output to indicate a timeout has occured. Could there be two different Serial Read with Timeouts examples? One in a llb for the old driver and one for VISA?

Anyway, the modification to the existing VI is pretty minor.

0 Kudos
Message 20 of 81
(2,366 Views)