LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino with labview using linx

Hi kashif,

 

To enter the sequence, it takes times.

So only that "LINX Open" function takes a long time before DATAFLOW enters the sequence?

 

Why don't you (auto) cleanup your code?

Why don't you put a wait into the "Start2" loop?

Why do you bang your LINX target at 30ms intervals?

Why is there a missing "Array Seperate" subVI?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 13
(277 Views)

Yes, the problem is with the linx open function as it takes a longer time to initialise about 8 sec. Actually i am controlling the actuator, the actuator signal goes high and goes to the extreme position till the data comes to the analog read.

0 Kudos
Message 12 of 13
(274 Views)

@kashifsherwani wrote:

Yes, the problem is with the linx open function as it takes a longer time to initialise about 8 sec. Actually i am controlling the actuator, the actuator signal goes high and goes to the extreme position till the data comes to the analog read.


Well lets see to start with you can lose the Flat Sequence (Think DATA FLOW) 

 

But as to your problem. It has been a long time since I used LINX and I don't remember how long it took to initialize the Arduino, but it never seemed to take 8 seconds!

 

Either way is sounds like you need to make some modifications to your hardware then if your actuator goes to one extreme position during start up.

 

There is a concept called "fail safe" that you might want to consider. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 13 of 13
(263 Views)