LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To setup a serial communication with a spectrograph read multiple inputs

I have a simple labview code in the making for controlling the spectrograph. I am very much new to the program of labview. I am at  a point where I am able to tell the spectrograph (command GOTO in the file)  to go to a certain wavelength and it does. Now,  I want the spectrograph to go a certain wavelength(in nm) at a certain nm/min. The inbuilt command for this NM/MIN (in the VI file attached).

 

I have written a simple piece of code in labview(I know it is not correctly coded). I want the spectrometer to read the wavelength(GOTO command) and also the speed(NM/MIN) command.

 

All I get is Hexadecimal error which is Error -1073807346 occurred at Property Node (arg 1) in source develop from this.vi.  If i delete the NM/MIN command the wavelength works just fine.

 

Please help me out on this regard. Thanks in advance for your time. I have attached the VI file too.

 

P.S. I am using RS-232 to USB

 

Thanks

Dr_Spacepirate

0 Kudos
Message 1 of 4
(2,776 Views)

Can you provide us with a manufacturer and model number of this spectrograph in order to understand the command structure?  It might be that some of your commands do not elicit a response from the equipment and may throw the error during your VISA Read.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 4
(2,749 Views)

right-click the wire with the bad command (going to the VISA Write) and select "clean-up wire".

 

The problems will be obvious.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 4
(2,736 Views)

@Dr_spacepirate wrote:

I have a simple labview code in the making for controlling the spectrograph. I am very much new to the program of labview. I am at  a point where I am able to tell the spectrograph (command GOTO in the file)  to go to a certain wavelength and it does. Now,  I want the spectrograph to go a certain wavelength(in nm) at a certain nm/min. The inbuilt command for this NM/MIN (in the VI file attached).

 

I have written a simple piece of code in labview(I know it is not correctly coded). I want the spectrometer to read the wavelength(GOTO command) and also the speed(NM/MIN) command.

 

All I get is Hexadecimal error which is Error -1073807346 occurred at Property Node (arg 1) in source develop from this.vi.  If i delete the NM/MIN command the wavelength works just fine.

 

Please help me out on this regard. Thanks in advance for your time. I have attached the VI file too.

 

P.S. I am using RS-232 to USB

 

Thanks

Dr_Spacepirate


I cleaned up your wires at bit. Can you now tell what is wrong with your "NM" command?

 

You still have a lot of other issues with you code that I didn't address.

 

 

 

EDIT - Too late. Ben beat me to it.

 

Capture.PNG

Message 4 of 4
(2,731 Views)