LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conceptual question about DLL programming

Solved!
Go to solution

LED47_0-1714146217473.png

I want to modify the above code to add the following:

The method CasSetDeviceParameterString, the parameter setting is dpidSpectrumFileFormat and the format is CAS4.SpectralAnalysis.

 

I don't understand the AWhat inputs.. Integers 112,113,114..?

 

I hope this makes sense I'm really just asking for the conceptual starting point..

 

I'll attach the DLL programming manual

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 1 of 4
(272 Views)

I have zero experience with this device, but according to documentation should be 113 I guess:

Screenshot 2024-04-26 18.13.27.png

then

Screenshot 2024-04-26 18.14.34.png

and here:

Screenshot 2024-04-26 18.15.19.png

0 Kudos
Message 2 of 4
(255 Views)
Solution
Accepted by topic author LED47

Look at page 40 of your manual and you will see this:

Kyle97330_0-1714148170951.png

That shows what those values represent.  They're in a list with dozens of other similar values.

 

Unfortunately I don't see an entry for "dpidSpectrumFileFormat" or anything that looks like it.  Where did you get the idea you need to use that?  Is it possible the manual and/or DLL is out of date?

 

Also as a side note, it is possible to wire in the error wire directly to the selector terminal of case structures instead of unbundling the "Status" Boolean:

Kyle97330_1-1714148733138.png

This has been the case since LabVIEW 2009 or so... is this code really old?

0 Kudos
Message 3 of 4
(247 Views)

You both you have gave me the answer I was looking for...

This is an instrumentsystems CAS 140 CT spectrometer, and I'm not sure what version of the DLL I have (Latest Windows compatible etc)., the LabVIEW treatment is pretty old... But I think what both of you have pointed out which I was getting a little muddled up and thinking I had to somehow calculate something in order to get the proper selection of changing the spectrum file output format.

I received the Method selection about changing the format of the spectrum file from an engineer at instrumentsystems, so I will go back to them and explain this  further now and I'll probably be okay

So thank you I think I'll be okay now.

0 Kudos
Message 4 of 4
(238 Views)