From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-16-2014 03:46 AM
I used the optical spectrum analyzer (OSA) to check the result, but it didn't work. there is no output wavelength. maybe there is something wrong with the initialize and configure parts? Can anyone take a look? did I miss something?
attached is the datasheet
Initialize: it is serial port.
configure_SetPower: set the output power of laser
configure_SetGridSpacing:set the spacing between every two channels
ScanFrequency
09-17-2014 02:21 PM
Hi cantata2014,
I believe the issue may be that you are trying to access the resource many different times throughout your code, but never open a session. You should open a VISA session, and use dataflow programming to make sure only one string is being written to your instrument at a time. I have attached a template for basic write functions when using VISA. Make sure you open and close the session as appropriate. This is a VI snippet, you can drop this .png into the block diagram and it will populate with the shown code, which you can use as a guide in modifying your block diagram. I hope this helps.
09-22-2014 11:59 PM
Hello,
I tried to use the data flow, but it still doesn't work... the problem is I don't know where is the problem
CH. PWR. GRID: (registers are different)
09-23-2014 12:25 AM
09-23-2014 12:28 AM
ok I know, the other thread was a mistake.
except the VISA open, is there any other possible problem???:womansad:
09-26-2014 04:11 AM - edited 09-26-2014 04:11 AM
You register value, is that in hex or decimal number ?
The format of the frame is having hex ranges.
If it should be in hex then you are sending register 1Eh (30d) and not 30h.
09-26-2014 09:08 AM
OK, Lets get this thread rolling along
cantala, I would be frustrated too but, you need to help us help you.
Post snippets of your code ( Menu Edit>>Create Snippet)
For ALL of your block diagram constants that are integers show the radix! (Select the constant Right-click)
You most likely have just found your own problem after doing that and selecting hexadecimal representation.
The link to the manual was a great way to start. But,
Any software developer that would choose that map probably has other nasty habits too so, I susspect that devising a proper driver for that laser may hold some challenges. Are you in contact with the manufacturer?
09-26-2014 09:19 AM
09-28-2014 11:18 PM
the register value 30 is decimal number.
I wrote all the numbers in decimal, then I converted the indicator to hex display. then I send the hex display to VISA write.
you mean I should write the frame in hex? I only know to display in hex....
09-28-2014 11:40 PM
Hello, I created the snippet as you said.
the constant are all decimals I think.
but the output of the sub VIs (PWR, GRID,CH and SENA) are all hex display.
what I don't understand is no matter it is hex display or normal display, I think they are just different ways of display, but they mean the same to VISA WRITE. or the VISA WRITE only accept hex numbers?
also, I think I got some problems of initialize part, because there is no wavelength output at all........maybe what I write is right, but I didn't initialize?