06-18-2025 05:28 AM - edited 06-18-2025 05:49 AM
I have been trying to create an vi to control my laser driver from aerodiode. I have a software for that but I want to control it with labview, simultaneously the daq should also be connected to the vi and both laser and daq should start at the same time. I have attached various VI's sent by the company but i need to make a proper vi so i can give current and voltage to the laser driver and turn it on and off at the same time with daq. And i have also attached SS of what i have done so far which is not working btw the laser is not even turning on and also documents sent by the company.
So if someone can create a vi or if someone can help me create a vi it'll be a lot of help.
So in short need VI's for driver and daq where both driver and laser turn on simultaneously and also ill be able to set current and voltage for laser driver.
need to connect these both vi but both are not working
Software provided by aerodiode
vi for daq working
vi for laser driver not working.
06-18-2025 05:48 AM
Hi Push,
@Pushpank1601 wrote:
i need to make a proper vi so i can give current and voltage to the laser driver and turn it on and off at the same time with daq.
… is not working btw the laser is not even turning on and also documents sent by the company.
vi for laser driver not working
Because your VI misses the LabVIEW basics, like error handling and enforcing dataflow…
Mind to cleanup that VI and avoid parallel device access by using DATAFLOW?
Mind to open and close the device just once before/after the loop?
06-18-2025 10:08 AM
You should also be looking into producer consumer architecture and using queued state machines. I am guessing the next step is to record the data to a file. The producer consumer will help with in the future. Keep in mind that the example code provided by the supplier is not necessarily the beast way to do this. It was an example to get you started.