LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview and Phidget software

I am a new user in Labview and have minimal knowledge on this software. I want to use labview to automate my motor actions on the phidget software. I currently control my motor's position on the phidget software by typing in the positon and so forth... But i want to use labview to be able to essentially program the movements beforehand. For example instead of having to type in the phidget software to move to position 1 and then 1 minute later, move to position 2, i want to develop a labview program where i can schedule these actions beforehand. Can anyone aid with this?

0 Kudos
Message 1 of 7
(160 Views)

@edvic18 wrote:

I am a new user in Labview and have minimal knowledge on this software.


As a first step, you need to learn the basics of LabVIEW, dataflow, and program architecture. Once you have that, the rest will fall into place.

 

I assume you have the LabVIEW Phidget drivers and instructions, right?

0 Kudos
Message 2 of 7
(153 Views)

Hey, thanks for the reply. Yes I have everything downloaded (i think), I'm currently trying to develop a program, perhaps i can upload it here and get some tips from others .

0 Kudos
Message 3 of 7
(141 Views)

Okay i am having trouble. So i attached a screenshot of how i control my stepper motor via the phidget software. Now when i tried developing a VI on labview, i am having so many issues. And yes i verified that my motor works with the phidget panel. Can someone please help/clarify my issues with my VI. greatly appreciated

0 Kudos
Message 4 of 7
(92 Views)

You can't just dive into the deep end before taking swimming lessons!

 

We cannot debug images of code because it is impossible to tell how things are connected.

 

Notice all these red coercion dots? They indicate a datatype mismatch between the wire and what the next input expects. Obviously there should probably not be I64 anywhere, so why convert to that type? Do you know about datatypes?

 

It is not obvious what the meaning of the value is that you wire to the wait, but it seem glaringly wrong! Isn't that supposed to be a session reference? We also cannot tell what you connect to the next primitive. Is that the input wire or the output of the wait primitive?  The output of the wait primitive is a relative ms counter and typically a gigantic and random U32 number, but if you just branch the input, the wait runs in parallel to the next primitive and will not stall anything. Dataflow!

 

Currently, your code is a single downhill run that is not suitable for an interactive program. A real program has a toplevel loop and a collection of states (state machine!).

0 Kudos
Message 5 of 7
(82 Views)

from this example from stepper motor library, if i wanted to essentially create preset 5 target positions at a specified time how could i incorporate that?

0 Kudos
Message 6 of 7
(56 Views)

Hi edvic,

 


@edvic18 wrote:

if i wanted to essentially create preset 5 target positions at a specified time how could i incorporate that?


You create an array to hold your target positions and delays, then you use an autoindexing loop to handle one setpoint after the other!

 

As Altenbach wrote: learn LabVIEW basics before swimming in deep water…

Best regards,
GerdW


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