LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separate daqmx setup for each analog input in two subvis

And what is error code -88708 pertain to?

I may not be perfect, but I'm all I got!
0 Kudos
Message 11 of 13
(660 Views)

Hello Veejay,

 

After looking over this post and your code, I think its best if we back up and break down this problem some more. In order to do this, I would like to know what the differences between each channel (elevation and speed). From reading your post all of these will be differential voltage measurements but will they all have the same range or do they each need a special scale?

 

After figuring this out, we need to know if you need a buffered measurement (multi-point acquisition) or single point acquisition. From looking over your VI it will need to be single point acquisition. With this information, we can build a simply VI that acquires the data correctly and then we can break it up into subVIs and then a state machine.

 

When create a state machine you should think about states like idle state (do nothing state), Start Task, Read Values, Stop Task, and Stop VI. The Initializing and closing part of the task should be outside the while loop where it will run only once.

 

Also, using reference like you have isn't the best way to go. In LabVIEW it is best to use data flow where you pass values into subVI. When you pass reference to all you subVI, it is very possible to run into a race condition especially when 2 subVIs are using the same references.


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 12 of 13
(631 Views)

 


@VeeJay wrote:

And what is error code -88708 pertain to?


This question reposted here

 

0 Kudos
Message 13 of 13
(616 Views)