LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot build executable with niHSDIO Close.vi error

Hi All,

 

I have written a VI using the niHSDIO functions to control a PXI-6561 card.  This VI is used in an application that I want to build to an executable, and distribute in an installer package.  The problem is that the build fails because there is an error in the niHSDIO Close.vi function.  This is because the PC I am writing the application on does not have the hardware attached.  When I use the VI's on the PXI controller that is using the PXI-6561 card then the Close.vi shows no error.  The error is not at the Close.vi stage but a subvi called Get Session Reference.

 

Is there any way of ignoring this error, or do I have to correct the problem in the Get Session Reference subVI?

 

Thanks

0 Kudos
Message 1 of 18
(4,190 Views)

Hi Marty H,

 

Is there any reason that you couldn't just build the application on the PC that is attached to the PXI? Do you have a static reference to the PXI chassis mentioned in your code? If you do have one, would it be possible to prompt the user to input this information or provide it in a text file to be read if you don't want the user to have to do this.

 

Thanks, 

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 2 of 18
(4,171 Views)

Hi,

I cannot build the application on the PXI Controller as it only has the trial version. Also, the error is coming from the NI driver installed with LabVIEW. The VI that is causing this problem is a subVI in niHSDIO Close.vi called Get Session Reference.vi. I have attached a copy for you to see.

Could you let me know how you would create a static reference from a file and link it to this subVI.

I’m not sure how to overcome this error.

Thanks

Martin

0 Kudos
Message 3 of 18
(4,154 Views)

Hi Marty H,

 

I am not able to generate the same error as when I tried to add a VI to the block diagram, LabVIEW corrects the broken wire. Would it be possible for you to try sending all your code so that I can attempt to build the application on my PC? You could try either updating the NI-HSDIO driver or uninstalling and reinstalling the driver (the latest version can be found here) 

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 4 of 18
(4,142 Views)

Hi Andrew,

 

Is your machine connected to any hardware?  The VI is ok when I see it on the controller connected to the PXI equipment.

 

I will try uninstalling and reinstalling the driver.

 

Martin

0 Kudos
Message 5 of 18
(4,137 Views)

Hi,

 

I tried putting the nisDIO Close.vi in the 8.5.1 version of LabVIEW and yes it does exactly what you said.  In my 8.6 version, this does not happen.  Also, many of the measurement I/O drivers that have been installed seem to be missing and many of them have lost links (shows a ?).  8.5.1 shows them all perfectly.

 

I am in the process of uninstalling all my packages and starting fresh with 8.6.

 

I will keep you informed.

 

Martin

0 Kudos
Message 6 of 18
(4,134 Views)

Hi Andrew,

 

I uninstalled all, and reinstalled just LabVIEW 8.6 with the latest HSDIO 1.5.4 driver downloaded from your link.  Unfortunately this has not solved the problem.  Have you got any other ideas.  Is there a bug in 8.6 as 8.5 works.

 

Cheers

Martin

0 Kudos
Message 7 of 18
(4,108 Views)

Hi Martin,

 

I can't say if there is a bug unless I see all your code. If you don't want to post your code  on the forum, there are a number of other ways you can send your code to me. You could phone the Office, email the office or even post your code. If you want the office contact details they are here. My name is Andrew McLennan so if you want to send things, I'm your point of contact. 

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 8 of 18
(4,105 Views)

Hey Martin,

 

Can you try to build an application or an installer with just one of the examples that ship with the HSDIO driver? Also, have you tried to replace the VI that is giving you a hard time in your specific program? Also, I am a little confused about when you are getting an error. So you can run your VI, but you get an error when you build an exe or installer? Please let us know when you are getting the error. Try out the example program suggestion and replacing the VI and let us know how things go. Thanks, and have a great day.

 

Regards,

DJ L.

0 Kudos
Message 9 of 18
(4,091 Views)

Hi,

 

Here is a screenshot from one of the example vi's.  This shows the error at the Close.vi and this is what I copied into my code.

 

With this error you cannot build the executable.

 

Regards

Martin

0 Kudos
Message 10 of 18
(4,074 Views)