LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Several Swiches

Hello everyone,

 

I am trying to write a piece of code that will allow me to control switches. I am testing some layer sum boards containing 16 channels (16 inputs and 16 outputs). I want to send a signal through each channel and check the output. How could I do this through LabVIEW?

 

Thanks,

Christian

0 Kudos
Message 1 of 11
(2,883 Views)

Hi Christian,

 

I am testing some layer sum boards containing 16 channels (16 inputs and 16 outputs). I want to send a signal through each channel and check the output.

What are "layer sum boards"? How do you connect them to your PC? Do you have a hardware driver for them? Or are these your UUT?

 

Which DAQ hardware do you use?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 11
(2,881 Views)

Hi GerdW,

 

LSBs are little circuits we use to store data in particle accelerators. I am using PXI-6602 and PXI-6251. Sorry I cannot be more detailed, but I am not a programmer at all, I am actually a physics student. My advisor just asked me to work on this and I have no idea how to proceede. I have never used LabVIEW before. Basically what I need to do is this: I need to send a pulse through each channel and read the output on an oscilloscope. Currently I am switching from one channel to another by hand. This is not a big issue now, since we are testing about 10 boards per mo nth, but we are about to get 3000 of these, and I need to be able to do this through software. My advisor mentioned that it could be possible to do this by means of a table(???).

 

Thanks,

Christian

0 Kudos
Message 3 of 11
(2,873 Views)

Can you give some more information? Is there one output that all the channels are connected to (if not, you will need relays to programmatically view the output of different channels)? Can you use a TTL pulse to send to the channels or is it some pulse your system generates? 

------------------------------
All statements are my opinion and worth every cent you paid for them.
Tom Whitaker, CLD
- - - - - - - - - - - - - - - - - - - -
"Give every man thy ear but few thy voice."
Polonius in Hamlet.
0 Kudos
Message 4 of 11
(2,857 Views)

christianwos wrote:  I have never used LabVIEW before.

Then I recommend you start with some tutorials.

3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training


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 5 of 11
(2,856 Views)

what are the electrical specification of the input/output signals (voltage, current)?

0 Kudos
Message 6 of 11
(2,839 Views)

Is there one output that all the channels are connected to (if not, you will need relays to programmatically view the output of different channels)? Each channel has its own input and output. Relays are exactly what I was trying to use. The problem is that the program needs to be able to send a pulse to each signal and check the output of each channel sequentially. Can you use a TTL pulse to send to the channels or is it some pulse your system generates? Yes, I can use a TTL.

 

Thanks for your help,

Christian

0 Kudos
Message 7 of 11
(2,804 Views)

The voltage range is between -5V and 5V.

 

Thanks,

Christian

0 Kudos
Message 8 of 11
(2,802 Views)

The boards you mentioned (PXI-6602 and PXI-6251) don't have relays. They do have TTL outputs that could be used to latch relays. You either need to find separate relays that can be latched by TTL pulses from these cards or you can get a relay board such as the NI PXI-2569 which can be controlled directly from software.

------------------------------
All statements are my opinion and worth every cent you paid for them.
Tom Whitaker, CLD
- - - - - - - - - - - - - - - - - - - -
"Give every man thy ear but few thy voice."
Polonius in Hamlet.
0 Kudos
Message 9 of 11
(2,788 Views)

Here is the piece of program that I wrote so far. I know, it is a mess

 

 

 

 

0 Kudos
Message 10 of 11
(2,780 Views)