LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulated NI-9361 module not available to detect in LabView

Solved!
Go to solution

Hey all,

 

I have configured 4 different simulated NI modules (figure 1). However, I'm not able to detect the NI-9361 module in LabView Front Panel (figure 2). I wonder if anyone has faced a similar problem and knows I could procced. 

 

HosseinBakhtiari_0-1658477440148.png

Figure 1. The 4 configured modules.

 

HosseinBakhtiari_1-1658477479121.png

Figure 2. Selection of module pins in LabView Front Panel, as it can bee seen the FlowMod (IN-9361) is not available to be selected.

 

 

Additional info

- I'm using LabVIEW 2021 SP1.

- The other 3 modules work correctly and I'm able to read from all their pins. 

 

All help is appreciated!

Kind regards,

Hossein

0 Kudos
Message 1 of 5
(1,522 Views)

Hi Hossein,

 


@HosseinBakhtiari wrote:

I have configured 4 different simulated NI modules (figure 1). However, I'm not able to detect the NI-9361 module in LabView Front Panel (figure 2).


Figure 2 does not show a "LabVIEW frontpanel". Most probably it shows a dialog to select a channel within the DAQAssistent ExpressVI!

 

The NI9361 is a CTR module, while the other 3 are AI modules. When you start the DAQAssistent to get AI values then it will not present CTR channels…

Best regards,
GerdW


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

Hey GerdW,

 

Thanks for your response. You're right, figure 2 does not show the Front Panel, it is a screenshot of a window that pops up when one needs to select a physical channel in Front Panel. 

 

 Any suggestion on how I should proceed? 

For the other three modules I'm using DAQmx to create virtual channels, figure below shows the setup I'm using for Current measurement. Do I need to use some other component than DAQmx to read from a CTR module or can I just change the DAQmx setup? And any suggestions on a link, where I can read more about AI and CTR modules? 

 

HosseinBakhtiari_0-1658492666137.png

 

Kind regards,

Hossein

 

0 Kudos
Message 3 of 5
(1,492 Views)
Solution
Accepted by topic author HosseinBakhtiari

Hi Hossein,

 


@HosseinBakhtiari wrote:

For the other three modules I'm using DAQmx to create virtual channels, figure below shows the setup I'm using for Current measurement. Do I need to use some other component than DAQmx to read from a CTR module or can I just change the DAQmx setup?


Place a new CreateVirtualChannel, set it's instance to any of the "Counter" modes. Then create a DAQmxChannel control by right-clicking the corresponding input of CreateVirtualChannel. Now the control should allow to look for counter channels.

 

One more thing you could try: at edit time right-click the DAQmxChannel control and select "IO name filter". A dialog will open where you can choose which kind of channels you look for…

 


@HosseinBakhtiari wrote:

HosseinBakhtiari_0-1658492666137.png


On your VI:

  • Do you really need 8 shift registers to hold the values of 8 channels? Why not use one 2D array to hold all channels?
  • Do you really need to call that scaling function 8 times, once for each channel? Wouldn't it be easier to scale all samples at once - or even apply a DAQmxScale at the CreateVirtualChannel function?
  • Building that XY graph also is much easier once you use a FOR loop for all channels…
  • Appending samples to evergrowing arrays is highly inefficient for the memory manager!
  • As soon as you read the first ~1000 samples you have more samples in your arrays than your graph is able to present - highly inefficient…
  • You set a samplerate of 10S/s, but you limit your loop to read just 2S/s! This is highly inefficient and begs for errors later on! When you define a samplerate then you should NOT add another WAIT inside the DAQ loop…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(1,469 Views)

Hey GerdW,

 

Thank you for your help, the first suggestion worked!

 

PS. thank you for your feedback on the VI, it is just a first sketch for the reading part of the program, but I'll definitely consider your suggestions and use them!

 

Kind regards,

Hossein

0 Kudos
Message 5 of 5
(1,432 Views)