LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

double type reading probleme

Hi everyone,

I'm working on a VI to read many captors. Many of them are plug on a SCXI-1102. 

My probleme front when i try to capture thermocouple meanwhile i try to read some pressure captors ( in volt).

The VI don't accept more than 1 physical channel for my rack (SCXI), but i need at least 2 channel because i have 2 type of datas. I don't have this probleme on my other rack (CDAQ9188)

someone have an idea to exploit multiples data on a single rack ?

On others words: how, with a simple llebla04_3-1624631165013.png i can use llebla04_0-1624630998661.png and  llebla04_4-1624631192456.png  (or something equivalent) to  llebla04_5-1624631234112.png thermocouples and pressures captors

 

llebla04_1-1624631057346.png

here my programme, you can see 4 'lines' to read with differents features (differents rates, differents type of data), without probleme for the first rak (CDAQ9188) , but if i add a 5th line to read volt data on SC1mod3 , the programme stop because a ressource is reserved

exemple with 5 lines here: 

llebla04_6-1624631625029.png

 

Thank you for your support.

0 Kudos
Message 1 of 7
(1,752 Views)

@llebla04 wrote:

 

here my programme,


Images are not "programs". 

0 Kudos
Message 2 of 7
(1,740 Views)

@llebla04 wrote:

The VI don't accept more than 1 physical channel for my rack (SCXI), but i need at least 2 channel because i have 2 type of datas. I don't have this probleme on my other rack (CDAQ9188)


I think your terminology is incorrect here.  A channel is a single measurement point (ie a single temperature).  What you are having problems with is multiple cards (also referred to as modules).  The SCXI does not allow for sharing a task across cards/modules.  cDAQ does.  The SCXI cards are too old for that capability.  If you go with PXI, then you need X-series cards or newer.



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
Message 3 of 7
(1,683 Views)

Hi crossrulz,

 

@crossrulz wrote:


The SCXI does not allow for sharing a task across cards/modules. … The SCXI cards are too old for that capability.

I do that with my SCXI systems all the time: using just one (1) AI task for 4 modules, taking mixed measurements of voltage, current and thermocouple measurement channels!

(And yes, they are old…)

Best regards,
GerdW


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

hi GerdW,

can you show me an exemple of your solution ? maybe i can inspire me ? 

llebla 

0 Kudos
Message 5 of 7
(1,653 Views)

Thank you for this precision crossrulz, i'll try to use the exact words.

0 Kudos
Message 6 of 7
(1,652 Views)

Hi llebla,

 


@llebla04 wrote:

can you show me an exemple of your solution ?


Sure I can:

  • The SCXI-Box "SC1" is resetted, then a new task is initialized.
  • The FOR loop adds upto 128 channels to the DAQmx task, the case structure inside has cases for voltage, current and thermocouple configurations. There's a custom scale to convert from Amps to milliamps for the current channels. This "Device CHAN" subVI converts from channel number (0…127) to correct SCXI module name and channel name of that module.
  • At last a samplerate is set for the task…
Best regards,
GerdW


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