Jump to content

How to Programmatically reset WLS Ni-9191


Recommended Posts

Hello,

I got 4 wls NI-9191 with the NI-9219 cards. Every evening when I leave the office I turn off the PC & remove the wls cards & router from the mains. In the morning when I turn on the PC and then the wls & router, MAX recognises the wls chassis but has issues seeing the NI-9219 cards. As a solution I reset the wls and everything goes well.

Does anyone know why this is happening?

Is there a way to programmatically reset the wls every time I start my .vi?

Thank you in advance,

Link to comment

Hello,

I got 4 wls NI-9191 with the NI-9219 cards. Every evening when I leave the office I turn off the PC & remove the wls cards & router from the mains. In the morning when I turn on the PC and then the wls & router, MAX recognises the wls chassis but has issues seeing the NI-9219 cards. As a solution I reset the wls and everything goes well.

Does anyone know why this is happening?

Is there a way to programmatically reset the wls every time I start my .vi?

Thank you in advance,

Do you call the DAQmx Reserve Network Device.vi in your LabVIEW code?

Link to comment

Hello,

Thank you for your reply,

No I do not call this .vi Should I? In MAX if a device is reserved then I cannot acquire any data from it.

I tried using the "DAQmx Reset Device.vi" and after 1-2 runs it does reset the devices. What I would like to do is to "detect" when a device needs resetting and then perhaps use the "DAQmx Reset Device.vi".

Thank you in advance,

Link to comment

Hello,

Thank you for your reply,

No I do not call this .vi Should I? In MAX if a device is reserved then I cannot acquire any data from it.

I tried using the "DAQmx Reset Device.vi" and after 1-2 runs it does reset the devices. What I would like to do is to "detect" when a device needs resetting and then perhaps use the "DAQmx Reset Device.vi".

Thank you in advance,

I haven't a lot of experience with the DAQmx networked devices but what I have found was that my LabVIEW application sometimes could access a CompactDAQ chassis, sometimes only after I had accessed the device in MAX and sometimes not at all. This was not an option for the application that needed to be able to startup and access the hardware with no user interaction at all, when starting up the computer.

Adding a little code that checks if the DAQmx device was a networked device and calling DAQmx Reserve Network Device.vi on before initializing the DAQmx task in that case has solved that completely and always lets my application startup and access the hardware without having to go into MAX at all.

I'm pretty sure that this function call does internally also a device reset, which is no problem for me, and seems to be what you want too.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.