04-05-2016 06:42 AM
Hello All,
I have written labview code to control two ESP301 controllers simultaneously via USB using flat sequence structure. But when I run the VI, the initialize block in the first flat sequence frame generates an error :-1073807339 labVIEW error whereas the second frame runs without any error and could establish communication when the logic is the same.
NOTE: both the controllers are connected via USB separately and both the controllers have the same controller address 1.
04-05-2016 06:54 AM - edited 04-05-2016 06:55 AM
Where did you get the drivers from? I suspect that perhaps the driver doesn't like having multiple instances (e.g. if it's a non-thread safe DLL call) or both instances are trying to access the same resource (e.g. VISA Resource / COM port). The error code indicates a timeout - are both devices plugged in correctly with different COM ports? Are you using a suitable filter so it knows how to identify which instrument it's communicating with?
Also - don't forget to 'close' your references after your VI executes - the library you have should include a 'close' function which will free up the VISA resource for the next time it runs.
I would also recommend that you get rid of the flat sequence structure (use dataflow or build a state machine) because your block diagram is pretty large.
04-05-2016 07:07 AM
I got the drivers from Newport website. The devices are connected through separate com ports. I did not have any filter to differentiate which controller I am communicating with as I thought putting in different frames might solve the issue. Thanks for reminding about the close vi. I don't know why I keep forgetting Thanks for your advice.
Regards
Sud
04-05-2016 07:14 AM
07-12-2016 01:21 AM - edited 07-12-2016 01:24 AM
Hello
Isn`t there a solution to control two ESP301 Models?
Greets
K.