LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.SPC file format from Galactic Industries (for spectroscopy files)

Hi Eli:

I tried the (equivalent) approach you suggested regarding copying the whole bin directory to the application folder (SPC_folder_translator) on a computer that does not have LabVIEW.



Then I tried to register by double-clicking on the URI file but still got the Windows dialog as shown in the previous message.  Did you test this yourself?

Thanks,

Don


Message Edited by DonRoth on 06-06-2008 09:24 AM
0 Kudos
Message 11 of 34
(2,035 Views)
Don,

That is expected to happen. The reason for moving those files to another computer is so that you have what is needed to REGISTER the URI. The registration process is actually the same. Having said that, if you register it manually (by double-clicking on the file) you will see the pop-up message regardless on which computer you do it. What I meant before is that in  order to register this URI on different computers without having the user worry about it, is to have some code on your executable that PROGRAMMATICALLY register the URI (keep in mind you will always need to include the bin directory). To accomplish this, you can use System Exec.vi to send the command through the commant prompt.
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 12 of 34
(2,023 Views)

Hi Eli:

Can you please provide a simple working code example of what you are explaining above that will allow a user who does not have LabVIEW on the machine to perform the programatic registration.

Thanks,

 

Don

0 Kudos
Message 13 of 34
(2,019 Views)
Hi Don,

Please find the attached code. There is nothing on the front panel so take a look at the block diagram, which actually turned out to be pretty simple. You can incorporate this pice of code into your main program and have it run when the program launches.

I am posting in LabVIEW 8.0 so you should be able to open it in 8.0 or any later version. Please let me know if you have any problems running it.


Eli S.
National Instruments
Applications Engineer
Message 14 of 34
(2,000 Views)

Thank you Eli.  This approach appears to have worked well on a computer in which LabVIEW is not installed.  Thanks again.

 

Sincerely,

 

Don

0 Kudos
Message 15 of 34
(1,990 Views)
Hi Eli - well I jumped the gun.  I could run the executable code, however I get the following error which seems related to the storage VIs.  Could not find anything on this on the support pages that I looked.  Any advise and suggestions to fix are appreciated.




Sincerely,

Don


Message Edited by DonRoth on 06-12-2008 09:48 AM
0 Kudos
Message 16 of 34
(1,979 Views)
I think this error happens because the URI did not actually registered and I think the reason for this is because the path of usireg.exe along with the path of the URI changed  in the new computer. Can you verify this and let me know if this is the case or not?
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 17 of 34
(1,961 Views)
I tried your directions manually at first, not programmatically, on my computer that does not have LabVIEW on it. This should be the identical set of instructions that the system exec will perform.




Message Edited by DonRoth on 06-16-2008 09:00 AM
0 Kudos
Message 18 of 34
(1,930 Views)
As another test, I then created a small executable based on your VI code, placed it into the bin directory on the computer without LabVIEW, and executed it but with the same result.

Attached is the exact code used to create the executable.

Thanks,

Don
0 Kudos
Message 19 of 34
(1,924 Views)

Hi,


I finally got this to work! For some reason the VI that I sent you initially (the one that registers the .uri) was working when I first made it but it wasn't working today so I made some changes to it and it works now.

I made an executable of both the VI that registers the GRAMS_SPC.uri and the VI that reads the file and plots the data. I moved both of these executables along with the whole Bin folder that contains usireg.exe into a computer without LabVIEW and I was able to run the first executable (to register) and then the other one and I was able to plot the data.

I am attaching here a ZIP folder that contains everything I used to test. It has both executables (already built), the source code for both, the Bin folder, GRAMS_SPC.uri, and the data file. The executables are located under the Builds folder. When you run the executable that registers the URI, make sure you populate all the fields first with the correct information and then run it. For the command field you want to type "/o" (without the quotations) or to register the URI, or "/u" to deregister the URI.

I tested this so it should work for you as well. Remember that you need to have the LabVIEW Run-Time Engine on the target computer.
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 20 of 34
(1,908 Views)