LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SRS DS345 function Generator Example Code Issue

I am trying to get a Stanford Research Systems DS345 synthesized function generator to run using  the example code that came with the NI-driver. I've attached the example code below. The first time I ran the program I was given an error message #1074003951...ID Query Failed. The function generator is hooked up correctly and will communicate through Measurement and Automation Explorer without an error. When I troubleshooted this error further, it was recommended to try disabling the query. I set the query to false and it communicated with the instrument. Unfortunately, the program freezes after I hit run and there is no way to stop it (even abort won't work).

 

I have started using labview only 2 weeks ago and am very new to it's programming. Should this code have a while loop or is there something in there that is continuously running the instrument that I don't see? Do I need to add a stop button, if so, where?

 

Thanks in advance.

Nicole

0 Kudos
Message 1 of 2
(3,381 Views)

You have to first provide the driver you are using. It is not the one on NI's or Stanford Research's site. I would suggest you contact the vendor of the driver for help. The initialize function should be fixed.

0 Kudos
Message 2 of 2
(3,374 Views)