05-24-2017 11:23 AM
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
05-24-2017 12:54 PM - edited 05-24-2017 12:56 PM
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.
05-24-2017 01:50 PM
right-click the wire with the bad command (going to the VISA Write) and select "clean-up wire".
The problems will be obvious.
Ben
05-24-2017 02:00 PM - edited 05-24-2017 02:01 PM
@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.