Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Conflict between PCI-6024E and PCI-6221

We do check that the resource is free, using the reserve/unreserve scheme that we have mentioned before. And that (after tests) has proved to work nicely using the computer with LabVIEW development system installed. The one with only LabVIEW run-time system however, does not work.
 
Yes we do have 3 similar snippets, but the difference in code size is not an issue in our application. We probably could do our sampling in the same task, but would prefer to do as few and small changes in the software as possible.
 
I have 2 questions, out of which the second one I have also asked a sales representative in Sweden to answer:
  • why is the application not working when using the run-time system, while it works fine under development system? any ideas? any KB-articles on the subject?
  • can we exchange the daq-card to a card that can sample multiple ai channels simultaneously and be rid of our problem? (A reasonable hardware cost is considered more attractive than a software change due to,  amongst other things, validation issues.)
I have yet not heard from the sales guy so I thought I might as well ask you too, as you have been so helpful before.
 
Regards, Michael
 
 
ps.  I decided to attach the reserve/unreserve code. It is attached in png-image format since I did not have the VIs available right now. The other 2 instruments (valve_monitoring and temperature) are very similar to the pressure_analogued.vi; all three polling to check for DAQ-availability, and all three are defined as different tasks. It might be a bit confusing, but the DAQ-Reserve Asynch.vi is the subvi with the icon saying "wait for resource" in the pressure_analogue.vi.

Message Edited by sirnell on 06-26-2006 12:55 PM

Download All
0 Kudos
Message 11 of 16
(1,784 Views)

Hello!

I have not seen anything reported when it comes to differences between development environment and executables for DAQmx. I suppose that you set up everything programmatically and are not dependent on settings done in Measurement & Automation Explorer. Do you have LabVIEW 8.0? If so you could build an executable and include debugging support that allows you from your development machine see the code and debug of the executable running on another machine if they are both connected to the network. That way you could see what is going wrong in the executable.

If the three tasks are supposed to run individually (not at the same time) an S-series board would work fine. However I don't see why they should work differently than an M-series board for an example the only difference would be that the M-series would multiplex the input channels while the S-series won't.

 

 

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 12 of 16
(1,752 Views)
Thanks for your answer, Jimmie, I appreciate your help and suggestions!
  • yes, everything is set up programmatically.
  • sorry, we use labview 7.1 so far. if you got that executable debugging going it sounds really neat, but we havent planned on an upgrade yet.

About the daq-boards: if we get an S-series board, can the three analogue input tasks run simultaneously (run at the same time, but potentially starting and stopping etc at different times)? we wouldnt get any "Error 50103" since the tasks wont interfere? (we are also running an analogue output task, but that should and has worked fine so far.)

/michael

0 Kudos
Message 13 of 16
(1,745 Views)

Hello!

Quote:

"About the daq-boards: if we get an S-series board, can the three analogue input tasks run simultaneously (run at the same time, but potentially starting and stopping etc at different times)? we wouldnt get any "Error 50103" since the tasks wont interfere? (we are also running an analogue output task, but that should and has worked fine so far.)"

No, you cannot run three input tasks simultaneously since the AI subset of the board will be reserved and can only be so for one task at once. But you can switch between tasks:

http://ae.natinst.com/operations/ae/public.nsf/web/searchinternal/cc65b8e1c3c45d0086256ccd005a1f76?O...

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 14 of 16
(1,739 Views)

So the only way to run several tasks at the same time is to have several daq-boards on the same computer?

I could not open the URL you attached. Could you please re-enter it?

Regards, Michael

0 Kudos
Message 15 of 16
(1,726 Views)

Hello!

Here is the link with the example I was talking about (clipboard can be scary sometimes!):

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=ED6DBA9E02365774E034080020E74861&p_...

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 16 of 16
(1,720 Views)