LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pressure transducer - NI 9263 and NI 9174

Hello,

I am able to generate the desired signal using Analog output module NI 9263 on cDAQ 9174. I have been triggering/starting the generation using from run button in Labview. I would now like to trigger the same externally using an ON/OFF switch.I am confused regarding the usage of module.

Could any one  please help me in this regard? What module is required for this purpose?

Any help will be highly appreciated.

Thank you.

Pieterson

0 Kudos
Message 1 of 20
(3,783 Views)

Hi Pieterson,

 

the NI9263 is a pure AO (analog output) module.

How do you want to read that switch signal?

Do you have any other DAQ modules available?

 

What module is required for this purpose?

Any module able to read your switch signal.

That could be a DIO (digitial IO) module, but you could also use AI modules being able to read a voltage signals…

 

Why don't you call your local NI sales support (with all requirements available for discussion)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 20
(3,776 Views)

Thank you GerdW.

I have NI 9401 Digital I/O module. Can it serve the purpose? What modifications should be done in code?

Best regards,

Pieterson

0 Kudos
Message 3 of 20
(3,751 Views)

Hi Pieterson,

 

I have NI 9401 Digital I/O module. Can it serve the purpose?

Yes, with a NI9401 you can read digital signals.

Keep in mind it is working with TTL levels (but has overvoltage protection upto ±30V).

 

What modifications should be done in code?

Well, I don't know your code so I cannot recommend any modifications of it…

Spoiler
You could add a DI DAQmx task to read the digital signal from your external button!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 20
(3,747 Views)

Thank you GerdW.

I am attaching my vi.Can you have a look and help me how to get the trigger done.

The objectives of triggering is to start trigger the analog output.

Regards,

Pieterson

 

0 Kudos
Message 5 of 20
(3,735 Views)

Hi Pieterson,

 

The objectives of triggering is to start trigger the analog output.

Have you had a look at the example VIs coming with LabVIEW and DAQmx?

There are a lot of DAQmx examples, and many of the explain how to use a "start trigger"!

So just start the example finder in LabVIEW's help menu…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 20
(3,730 Views)

Thank you GerdW.

I tried doing so.I wrote the code (attached below) but it didnot seem to work. I have to trigger it from software as earlier.Can you please have a look to the code and help me with it?

Things I did:

> TTL signal fed to PFI 0.Positive wire is connected to pin 14 and ground to pin 1.

 

Regards,

Pieterson

0 Kudos
Message 7 of 20
(3,720 Views)

Hi Pieterson,

 

I wrote the code (attached below) but it didnot seem to work.

What does not work?

Do you get any errors? Which ones?

 

I have to trigger it from software as earlier.

Do you need to trigger your AO task from an external output signal or from a button on your front panel?

 

Things I did:

Did you also try to "play" with the same settings in MAX to actually test all your settings?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 20
(3,708 Views)

Thank you GerdW and sorry for such short and unclear message.

What does not work?

The expected external trigger doesn't work. I had to trigger from the front panel.

Do you get any errors? Which ones?

No, I didn't get any errors. It's just that the external trigger doesn't work and I had to trigger from software front panel.

Do you need to trigger your AO task from an external output signal or from a button on your front panel?

Yes, I need to trigger the AO task from an external output signal, not from a button on front panel.

Did you also try to "play" with the same settings in MAX to actually test all your settings?

I am completely new to LabVIEW and NI-Daq. What do you mean by this statement? What is Max?

Any help will be highly appreciated.

Regards,

Pieterson

0 Kudos
Message 9 of 20
(3,699 Views)

Hi,

I am completely new to Labview. I am trying to trigger analog output (NI-9263) by using digital I/O (NI- 9401) on Ni-cDAQ 9174.The hardware trigger I am using a push button with positive terminal connected to pin 14 (DIO 0) and negative terminal to pin1 (COM1) .

 

I think pressing the push button mainly short-ckt both the terminal generating ~5v impulse trigger at the digital output that is now used to trigger the analog output.Kindly correct me if I am wrong.

 

I have attached the VI used to do so.However, pressing the push button does not seem to work.It does not even show any error.To trigger,I have to press button on front panel of Labview.

Any help will be highly appreciated.

0 Kudos
Message 10 of 20
(3,695 Views)