LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating vi

Solved!
Go to solution

I WANT TO CREAT VI FOR TESTING THIS STEP FOR PCB BOARD:

 

  1. Short ON/OFF button momentarily for one second (ON/OFF board)  “Turn ON Board”
    ON/OFF Board Short S1 or P1 pin-1 to Pin2
  2. Wait for 5 seconds
  3. Confirm 24V_TO_PDMD = 24V  (IF yes, record PASS, IF no record FAIL
  4. Short ON/OFF button momentarily for one second  “Turn OFF board”
  5. Wait until 24V_TO_PDMD measures below 100mV (This will likely take about 5 seconds)

REPEAT STEPS 1 THRU 5 1000 times

0 Kudos
Message 1 of 9
(2,996 Views)
Solution
Accepted by topic author Harry12

@Harry12 wrote:

I WANT TO CREAT VI FOR TESTING THIS STEP FOR PCB BOARD:


No need to yell (all caps).

 

So it looks like you will need a relay and/or DIO  to short the line and a DMM to measure the output.  Do you have drivers for those yet?  That would be the first step: get all of your IO working.  Then it sounds like a simple FOR loop.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 9
(2,970 Views)

Thank you for letting us know you have a project with some defined goals.

 

What would you like us to do with this information?

Do you have a question?

Have you started programming and gotten stuck where something isn't working the way you want?

Is it safe to assume you have learned some LabVIEW either from a training course or doing some tutorials?

0 Kudos
Message 3 of 9
(2,968 Views)

yes, I did connection for relay SC-2062 and DIO SCB-68. i m from the mechanical side that kind of I have problem with programming. I attached my vi please have a look.

 

thank you

0 Kudos
Message 4 of 9
(2,957 Views)

@crossrulz please see my comments

0 Kudos
Message 5 of 9
(2,949 Views)
Solution
Accepted by topic author Harry12

Avoid local variables and stacked sequence structures.  You can do everything with simple wires.  From there, it is just a matter of sequencing your steps.  I see you still need to figure out how to read the 24V.  You have yet to state how how plan to measure that.

 

But this should get you close.  You will really want to think about how to log the data and/or state how many times it passed/failed (hint: shift registers).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 9
(2,927 Views)

hello @crossrulz

 

i m done with the program but after putting shift register. i read 8V, it showed up in graph and stay same until next cycle. I want to drop that voltage to 0 once it read 8V.

 

i want to update the voltage reading always active not just update at some buried sequence

 

can you please help me with that.,

0 Kudos
Message 7 of 9
(2,841 Views)

@Harry12 wrote:

i want to update the voltage reading always active not just update at some buried sequence


Read in a parallel loop.  Initialize and start the read task before the loop and don't stop and clear it until after the loop.  Then just read inside.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 9
(2,829 Views)

@crossrulz

 

i don't get it I think, can you please edit my vi and send it to me, I attached in before message.

 

sorry and thank you for your help.

0 Kudos
Message 9 of 9
(2,817 Views)